simple graph structure