Vertices---> Vertex 0 is connected to 1 and has weight 1
Vertex 0 is connected to 2 and has weight 1
Vertex 0 is connected to 5 and has weight 1
Vertex 0 is connected to 6 and has weight 1
Vertex 1 is connected to 0 and has weight 1
Vertex 2 is connected to 0 and has weight 1
Vertex 3 is connected to 4 and has weight 1
Vertex 3 is connected to 5 and has weight 1
Vertex 4 is connected to 3 and has weight 1
Vertex 4 is connected to 5 and has weight 1
Vertex 4 is connected to 6 and has weight 1
Vertex 5 is connected to 0 and has weight 1
Vertex 5 is connected to 3 and has weight 1
Vertex 5 is connected to 4 and has weight 1
Vertex 6 is connected to 0 and has weight 1
Vertex 6 is connected to 4 and has weight 1
Vertex 7 is connected to 8 and has weight 1
Vertex 8 is connected to 7 and has weight 1
Vertex 9 is connected to 10 and has weight 1
Vertex 9 is connected to 11 and has weight 1
Vertex 9 is connected to 12 and has weight 1
Vertex 10 is connected to 9 and has weight 1
Vertex 11 is connected to 9 and has weight 1
Vertex 11 is connected to 12 and has weight 1
Vertex 12 is connected to 9 and has weight 1
Vertex 12 is connected to 11 and has weight 1
-------
0
1
2
5
3
4
6
7
8
9
10
11
12
Vertex 0 can be reached from -1
Vertex 1 can be reached from 0
Vertex 2 can be reached from 0
Vertex 3 can be reached from 5
Vertex 4 can be reached from 3
Vertex 5 can be reached from 0
Vertex 6 can be reached from 4
Vertex 7 can be reached from -1
Vertex 8 can be reached from 7
Vertex 9 can be reached from -1
Vertex 10 can be reached from 9
Vertex 11 can be reached from 9
Vertex 12 can be reached from 11