tnetwork.DynCommunitiesIG.nodes_ordered_by_com

DynCommunitiesIG.nodes_ordered_by_com(node2com=None)[source]

Nodes ordered by their main community

Return nodes such as those with the same main community are close to each other. By default, use the main community according to internal function nodes_main_com Another order can be passed in parameter.

Parameters:node2Com – a dictionary associating a node to its main affiliation
Returns:list of nodes