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.

infomap.export.write_graphml(graph: Any, im: Any, path: str | Path, **options: Any) None

Write a GraphML file with Infomap result attributes on nodes.

infomap.export.write_gexf(graph: Any, im: Any, path: str | Path, **options: Any) None

Write a GEXF file with Infomap result attributes on NetworkX nodes.