hmm34 / CS-Image-Segmentation-Solver

Project 1 of Advanced Algorithms Sp'14 - It implements the Ford-Fulkerson network flow algorithm and uses it to solve an image segmentation problem.
0 stars 0 forks source link

Use node size #12

Closed hmm34 closed 10 years ago

hmm34 commented 10 years ago

The graph is using the size of the adjacency list in BFS, which does not necessarily represent the number of nodes in the graph. Count the number of nodes in the graph during construction and use in BFS instead.

hmm34 commented 10 years ago

Oops. Fixed. :wheelchair: