plot graph based on modularity data