test graph creation