Compute graph-summary stability across a graph sequence
Source:R/graph_summary_divergence.R
compute.graph.summary.stability.RdComputes 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().
Usage
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
)Arguments
- graphs
Either a list of graph-like objects or an object of class
"iknn_graphs".- summary
Summary type to compare across consecutive graph pairs.
- divergence
Divergence type. Currently only
"js".- labels
Optional shared vertex-label vector used for
"neighborhood_label_distribution".- summary.args
Optional named list forwarded to
graph.summary.divergence().- k.values
Optional integer vector of k values. If
graphsis an"iknn_graphs"object andk.valuesisNULL, the values are derived from itsk.valuesattribute.- graph.type
If
graphsis an"iknn_graphs"object, choose either"geom"or"isize".- return.details
Logical; if
TRUE, return a structured list.
Value
If return.details = TRUE, a list with fields:
summary: summary type used.divergence: divergence type used.k.values: fullksequence.k.transition.values:kvalues corresponding to consecutive-graph transitions.values: vector of divergence values of lengthlength(k.values) - 1.details: optional pairwise details for each transition.
Otherwise, returns only the divergence vector.