Build graph from an image
I have a binary image and I am trying to build undirected graph from this image in order to apply minimum spanning tree . My idea is from this paper http://cs.brown.edu/~pff/papers/seg-ijcv.pdf
I have no idea how to build the graph .