sync_igraph_communities: Sync igraph nodes and communities

sync_igraph_communitiesR Documentation

Sync igraph nodes and communities

Description

Sync igraph nodes and communities

Usage

sync_igraph_communities(g, wc, verbose = TRUE, ...)

Arguments

g

igraph object

wc

communities object, or list in form of nodegroups, which is a list of character vectors that contain igraph node names.

verbose

logical indicating whether to print verbose output.

...

additional arguments are passed to nodegroups2communities() only when input wc is supplied in list nodegroups format.

Details

This function ensures that igraph nodes and corresponding community clusters are synchronized for proper downstream use. In particular, when using a subgraph, or when communities only assign a subset of nodes to clusters, this function ensures the two objects are in sync, the same order, and with the same nodes.

Value

list with two elements:

  • "g" - the igraph object after subsetting to match node names shared with wc, as necessary.

  • ⁠"wc'⁠ - the communities object after subsetting to match node names shared with g, as necessary. When input wc is in list nodegroups format, that same format is returned.

See Also

Other jam igraph functions: cnet2df(), cnet2im(), cnetplotJam(), cnetplot_internalJam(), color_edges_by_nodegroups(), color_edges_by_nodes_deprecated(), color_edges_by_nodes(), color_nodes_by_nodegroups(), communities2nodegroups(), drawEllipse(), edge_bundle_bipartite(), edge_bundle_nodegroups(), enrichMapJam(), fixSetLabels(), flip_edges(), get_bipartite_nodeset(), igraph2pieGraph(), jam_igraph(), jam_plot_igraph(), label_communities(), layout_with_qfrf(), layout_with_qfr(), mem2emap(), memIM2cnet(), mem_multienrichplot(), nodegroups2communities(), rectifyPiegraph(), relayout_with_qfr(), removeIgraphBlanks(), removeIgraphSinglets(), reorderIgraphNodes(), rotate_igraph_layout(), spread_igraph_labels(), subgraph_jam(), subsetCnetIgraph(), subset_igraph_components(), with_qfr()


jmw86069/jamenrich documentation built on Nov. 6, 2024, 7:07 p.m.