import leidenalg as la
import igraph as ig
G = ig.Graph.Famous(\'Zachary\')
partition = la.find_partition(G, la.ModularityVertexPartition)
ig.plot(pa