Updating subgraph exercise.