add extra test for graph.
modify bug. adjacency array logic was wrong
separate graphutils outside of graph.py