infomap icon indicating copy to clipboard operation
infomap copied to clipboard

Wrong codelength calculation with recorded teleportation if no optimization

Open danieledler opened this issue 3 years ago • 0 comments

Replicate in python:

edges = [
    [1,2],
    [2,3],
    [3,1],
    [3,4],
    [4,5],
    [5,6],
    [6,4],
]
G = nx.DiGraph()
G.add_edges_from(edges)
py.find_communities(G, recorded_teleportation=True, num_trials=1) # gives index codelength 0.102
py.find_communities(G, recorded_teleportation=True, num_trials=2) # gives index codelength 0.251

danieledler avatar Nov 24 '22 19:11 danieledler