Type Definition truck_topology::EdgeID

source ·
pub type EdgeID<C> = ID<Mutex<C>>;
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());