I am using Markov clustering to cluster a graph of 878 nodes. The implementation is based on the work mentioned here https://github.com/guyallard/markov_clustering
adj_matrix = nx.to_numpy_matrix(G)
res = mcl.run_mcl(adj_matrix)
clusters = mcl.get_clusters(res)
clusters:
[(0,73, 88,173,223,235,390,405,409,435,442,456,481,501,573,615),
(5, 38, 193, 403, 657, 679, 760, 791, 835, 854),
...
...
(7, 201, 640)]
It looks that the procedure is giving me the node order NOT the original label that i used to build the graph which was like this 780873982
, 928735728
, 293482978
, etc.
Is there a way to map the above result to the original node labels?
The expected the result would be like this
[(780873982, 928735728, 293482978), (293482932, 883482978), ...]
Thank you in advance !