Sync igraph nodes and communities
Source:R/jamenrich-communities-nodegroups.R
sync_igraph_communities.Rd
Sync igraph nodes and communities
Arguments
- g
igraph
object- wc
communities
object, orlist
in form of nodegroups, which is alist
ofcharacter
vectors that containigraph
node names.- verbose
logical
indicating whether to print verbose output.- ...
additional arguments are passed to
nodegroups2communities()
only when inputwc
is supplied inlist
nodegroups format.
Value
list
with two elements:
"g"
- theigraph
object after subsetting to match node names shared withwc
, as necessary."wc'
- thecommunities
object after subsetting to match node names shared withg
, as necessary. When inputwc
is inlist
nodegroups format, that same format is returned.
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.
See also
Other jam igraph functions:
cnet2df()
,
cnet2im()
,
cnetplotJam()
,
cnetplot_internalJam()
,
color_edges_by_nodegroups()
,
color_edges_by_nodes()
,
color_edges_by_nodes_deprecated()
,
color_nodes_by_nodegroups()
,
communities2nodegroups()
,
drawEllipse()
,
edge_bundle_bipartite()
,
edge_bundle_nodegroups()
,
enrichMapJam()
,
fixSetLabels()
,
flip_edges()
,
get_bipartite_nodeset()
,
highlight_edges_by_node()
,
igraph2pieGraph()
,
jam_igraph()
,
jam_plot_igraph()
,
label_communities()
,
layout_with_qfr()
,
layout_with_qfrf()
,
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()