added graph structure