unweightedSingleVertexSDI {rSDI}R Documentation

Not for explicit use.

Description

Not for explicit use.

Usage

unweightedSingleVertexSDI(g, v, mode = "all")

Arguments

g

the graph

v

the vertex

mode

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

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)
toyGraph <- dist_calc(toyGraph)
toyGraphWithSDI <- unweightedSingleVertexSDI(toyGraph,igraph::V(toyGraph)[1])

[Package rSDI version 0.2.1 Index]