updating ListGraph for modularity