Made change to splitting code.
changed directed graph.