my query is why we need to add this step, it is required that i can see from the result but why?
what two for loops are doing they are basically making connections(unidirectional) in the graph, like joining 4-10,1-5, and so on but likewise when we reach 30 , by throwing 6 we are reaching to 36 and this connection is actually establishing when i=30 and j=36 as box =0 why then we have to make connection explicitly