Given a potential mapping of the network and a new macro node, this function assigns a new macro node to the candidate node optimized for maximal accuracy.
select_macro(graph, macro, mapping, macro_types, ...)
igraph object of micro network
numeric of possible macro node
List mapping from micro to macro nodes.
List of node distribution types.
Passed arguments.
List with igraph graph object corresponding to a coarse-grained network and updated node types.