SDIcomputer | 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.
SDIcomputer(g, level, weight.use, directionality, return.value = FALSE)
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. |
If return.value is TRUE, returns the computed SDI value. Otherwise, returns the modified graph object.
TMgraph <- igraph::graph_from_data_frame(TurkiyeMigration.flows,
directed=TRUE, TurkiyeMigration.nodes)
SDIcomputer(TMgraph,"vertex","weighted","in")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.