R/jamenrich-communities-nodegroups.R
sync_igraph_communities.Rd
Sync igraph nodes and communities
sync_igraph_communities(g, wc, verbose = TRUE, ...)
igraph
object
communities
object, or list
in form of nodegroups,
which is a list
of character
vectors that contain igraph
node names.
logical
indicating whether to print verbose output.
additional arguments are passed to nodegroups2communities()
only when input wc
is supplied in list
nodegroups format.
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.
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.
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()