added graph structure2.0