/// Represents an edge between two pixels in an image.
/// Each edge is characterized by a weight and the adjacent nodes.
#[derive(Debug, PartialOrd, PartialEq, Copy, Clone, Default)]pubstructImageEdge{/// Index of first node.
pubn:usize,
/// Index of second node.
pubm:usize,
/// Edge weight, i.e. the distance of two pixels in feature space.
pubw:f32,
}implImageEdge{pubfnnew(n:usize, m:usize, w:f32)->Self{Self{ n, m, w }}}