Unable to understand

why we have added the code line g.addEdge(36,36)-----when we do g.addEdge(35,36) and g.addEdge(30,36) and so on the edge 36 should be added -----why specially to write for the node 36 to add the edge from 36 to 36-----