Tree nodes and iterators¶
Walking an Infomap partition yields nodes via these iterator types.
InfoNode is the node wrapper returned by each step.
- class infomap.InfoNode(*args)¶
-
- get_meta_data(dimension=0)¶
Get meta data on a specific dimension.
- property is_leaf_module¶
True if the node has children but no grandchildren.
- Returns:
Is leaf module
- Return type:
State-node iterators¶
- class infomap.InfomapIterator(*args)¶
-
- property modular_centrality¶
Get the modular centrality of the node.
- Returns:
The modular centrality
- Return type:
- class infomap.InfomapLeafModuleIterator(*args)¶
-
- property modular_centrality¶
Get the modular centrality of the node.
- Returns:
The modular centrality
- Return type:
Physical-node iterators¶
- class infomap.InfomapIteratorPhysical(*args)¶
-
- property modular_centrality¶
Get the modular centrality of the node.
- Returns:
The modular centrality
- Return type: