Closed LukHan99 closed 4 years ago
Can we assume that the weights of the edges in the graph will all be set to 0 when the graph is constructed?
If it is not a reasonable assumption, then are we allowed to change the weights of the edges in the graph?
For detecting cycles, we can just consider it as 0 because we focus more on the direction of edges.
Can we assume that the weights of the edges in the graph will all be set to 0 when the graph is constructed?