communityEdgeWeight: communityEdgeWeight(source,destination)

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the weight of the edge that goes from source community to destination community from the selected post processing algorithm or the main algorithm, after the last iteration.

Usage

1
DynComm.communityEdgeWeight(dyncomm,source,destination)

Arguments

dyncomm

A DynComm object, if not using the inline version of the function call

source

The name of the source community that is part of the edge

destination

The name of the destination community that is part of the edge

Value

a floating point number with the weight

Author(s)

poltergeist0

See Also

DynComm , postProcess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(DynComm)

Parameters<-matrix(c("e","0.1","w", "FALSE"),ncol=2, byrow=TRUE)
dc<-DynComm(ALGORITHM$LOUVAIN,CRITERION$MODULARITY,Parameters)
dc$addRemoveEdges(
 matrix(
   c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,12,13,1,1,1,2,2,2,18,12,19,20,2,3,11,12,4,9,5,9,22)
      ,ncol=2)
)

dc$communities()
dc$communityEdgeWeight(0,12)

DynComm documentation built on Oct. 23, 2020, 5:57 p.m.