Graph-theoretic Approaches to Segmentation based on Active Contours and Random Walk Schemes on Arbitrary Graphs