Export helpers¶
- infomap.export.annotate_networkx_graph(graph: Any, im: Any, *, node_mapping: Mapping[Any, Any] | None = None, module_attribute: str | None = 'infomap_module', path_attribute: str | None = 'infomap_path', include_hierarchy: bool = True, flow_attribute: str | None = None, copy: bool = True, strict: bool = True) Any¶
Return a NetworkX graph annotated with Infomap result attributes.
- infomap.export.annotate_igraph_graph(graph: Any, im: Any, *, module_attribute: str | None = 'infomap_module', path_attribute: str | None = 'infomap_path', include_hierarchy: bool = True, flow_attribute: str | None = None, copy: bool = True, strict: bool = True) Any¶
Return a python-igraph graph annotated with Infomap result attributes.