View source: R/graph_summary_divergence.R
| compute.graph.summary.stability | R Documentation |
Computes a divergence-based stability curve across consecutive graphs in a
sequence. This function provides a generalized sequence-level analogue of the
degree-profile Jensen-Shannon calculation currently used in
compute.stability.metrics().
compute.graph.summary.stability(
graphs,
summary = c("degree_distribution", "edge_weight_distribution",
"component_size_distribution", "neighborhood_label_distribution"),
divergence = c("js"),
labels = NULL,
summary.args = list(),
k.values = NULL,
graph.type = c("geom", "isize"),
return.details = TRUE
)
graphs |
Either a list of graph-like objects or an object of class
|
summary |
Summary type to compare across consecutive graph pairs. |
divergence |
Divergence type. Currently only |
labels |
Optional shared vertex-label vector used for
|
summary.args |
Optional named list forwarded to
|
k.values |
Optional integer vector of k values. If |
graph.type |
If |
return.details |
Logical; if |
If return.details = TRUE, a list with fields:
summary: summary type used.
divergence: divergence type used.
k.values: full k sequence.
k.transition.values: k values corresponding to consecutive-graph
transitions.
values: vector of divergence values of length length(k.values) - 1.
details: optional pairwise details for each transition.
Otherwise, returns only the divergence vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.