cdlib.utils.nx_node_integer_mapping

nx_node_integer_mapping(graph: object) → tuple

Maps node labels from strings to integers.

Parameters:graph – networkx graph
Returns:if the node labels are string: networkx graph, dictionary <numeric_id, original_node_label>, false otherwise