Creating subgraph on the graph - step by step