mapequation / infomap

Multi-level network clustering based on the Map Equation
https://mapequation.org/infomap
GNU General Public License v3.0
425 stars 88 forks source link

amazing! Keep the node and the corresponding edge weights unchanged, only change the node id in the graph, the clustering result will change #352

Open kxleee opened 8 months ago

kxleee commented 8 months ago
for (i, j), sim in tqdm(links.items()):
    _ = infomapWrapper.addLink(i, j, sim)

infomapWrapper.run()  

-> Configuration: two-level directed seed = 45 num-trials = 3

-> Ordinary network input, using the Map Equation for first order network flows Calculating global network flow using flow model 'directed'... -> Using unrecorded teleportation to links. -> PageRank calculation done in 50 iterations.

=> Sum node flow: 1, sum link flow: 1 Build internal network with 63 nodes and 1058 links

When constructing the graph, the order of 63 nodes is scrambled, the corresponding link is kept unchanged, and the clustering result changes.

Wanted to tell me. Why Thanks