sort node list inside each node
add test for make-graph