Type Definition truck_topology::EdgeID
source · Expand description
The id that does not depend on the direction of the edge.
Examples
use truck_topology::*;
let v = Vertex::news(&[(), ()]);
let edge0 = Edge::new(&v[0], &v[1], ());
let edge1 = edge0.inverse();
assert_ne!(edge0, edge1);
assert_eq!(edge0.id(), edge1.id());