Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 860 Bytes

utils.rst

File metadata and controls

33 lines (21 loc) · 860 Bytes

Utilities

CDlib exposes a few utilities to manipulate graph objects generated with igraph and networkx.

cdlib.utils

Graph Transformation

Transform igraph to/from networkx objects.

convert_graph_formats

Identifier mapping

Remapping of graph nodes. It is often a good idea - to limit the memory usage - to use progressive integers as node labels. CDlib automatically - and transparently - makes the conversion for the user, however, this step can be costly: for such reason the library also exposes facilities to directly pre/post process the network/community data.

nx_node_integer_mapping remap_node_communities