Traverse the graph using a version of the "breadth first search" algorithm and find final labels for all of its nodes.
graph
If mark_isolated_patches is true, isolated patches get labeled with 1, the rest with 0.
mark_isolated_patches
1
0
If mark_isolated_patches is false, each connected component in the graph gets a unique label starting from 1 and using consecutive integers.
Definition at line 192 of file label_components_parallel.cc.
Referenced by final_labels().