title: Networkx Modularity and Simrank Similarity of Graph
body: <p>I want to compute the modularity and Simrank similarity of a Networkx Graph.</p>
  <p>The Graph consists of 92000 edges and 25000 nodes.</p>
  <p>However, when I execute the following code, Colab crashes and restarts:</p>
  <pre><code># SIMRANK
  nx.simrank_similarity(G)
  
  # MODULARITY
  from networkx.algorithms import community
  communities_generator = community.girvan_newman(G)
  top_level_communities = next(communities_generator)
  next_level_communities = next(communities_generator)
  sorted(map(sorted, next_level_communities))
  </code></pre>
  <p>How do I calculate these two properties?</p>
  <p>Thank you.</p>