weightedNetworkSDI {rSDI}R Documentation

Not for explicit use.

Description

Not for explicit use.

Usage

weightedNetworkSDI(g)

Arguments

g

the graph

Value

a numerical SDI value

Examples

flows<-data.frame(from=c("A","B","A"), to=c("B","A","C"), weight=c(10,20,5))
nodes<-data.frame(id=c("A","B","C","D"),x=c(0,4,0,4),y=c(3,0,0,3))
toyGraph <- igraph::graph_from_data_frame(flows, directed=TRUE, vertices=nodes)
toyGraphWithSDI <- weightedNetworkSDI(toyGraph)

[Package rSDI version 0.2.1 Index]