Why do people do this(graphs)?
I have seen many time people starting dfs with starting node -1 but I don't understand why do they do this.Can you please tell me why do they do so like in this example.
Atcoder ABC #354 Solution Discussion