sample node and edges information to generate two triange graph
calc modularity after reading edges and node attributes file