Basic test for graph structure