SDIcomputer {rSDI} | R Documentation |
SDIcomputer() is a helper function to compute given SDI variant for the given graph object. Not intended for explicit use. Called automatically by the 'SDI()' function.
Description
SDIcomputer() is a helper function to compute given SDI variant for the given graph object. Not intended for explicit use. Called automatically by the 'SDI()' function.
Usage
SDIcomputer(g, level, weight.use, directionality, return.value = FALSE)
Arguments
g |
An igraph object. |
level |
The level to calculate the SDI. 'network' or 'vertex'. |
weight.use |
'weighted' or 'unweighted'. |
directionality |
'undirected', 'in', 'out', or 'all'. |
return.value |
Logical. If TRUE, return the computed SDI value instead of modifying the graph object. |
Value
If return.value is TRUE, returns the computed SDI value. Otherwise, returns the modified graph object.
Examples
TMgraph <- igraph::graph_from_data_frame(TurkiyeMigration.flows,
directed=TRUE, TurkiyeMigration.nodes)
SDIcomputer(TMgraph,"vertex","weighted","in")
[Package rSDI version 0.2.1 Index]