Utilities¶
cdlib
exposes a few utilities to manipulate graph objects generated with igraph
and networkx
.
Graph Transformation¶
Transform igraph
to/from networkx
objects.
|
Converts from/to networkx/igraph |
Identifier mapping¶
Remapping of graph nodes. It is often a good idea to limit memory usage and 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.
|
Maps node labels from strings to integers. |
|
Apply a map to the obtained communities to retrive the original node labels |