weightedAllVerticesSDI {rSDI}R Documentation

Not for explicit use.

Description

Not for explicit use.

Usage

weightedAllVerticesSDI(g, mode = "all")

Arguments

g

the graph

mode

directionality 'undirected', 'in', 'out', or 'all'

Value

a vector of vertex SDI values

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 <- weightedAllVerticesSDI(toyGraph)

[Package rSDI version 0.2.1 Index]