removed graph from segmentation. simplified border graph type. added function to compute weighted neighbourhood graph.