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, ...)

Arguments

graph

igraph object of micro network

macro

numeric of possible macro node

mapping

List mapping from micro to macro nodes.

macro_types

List of node distribution types.

...

Passed arguments.

Value

List with igraph graph object corresponding to a coarse-grained network and updated node types.