split the graph