ToTeM Complex networkx clustering