Add concrete type aliases of VertexMap and EdgeMap for Graph and AppendGraph

This commit is contained in:
2026-07-06 18:49:02 +02:00
parent 266dee783b
commit 1446103d34
3 changed files with 8 additions and 3 deletions
+3
View File
@@ -7,6 +7,9 @@ pub struct Vertex(usize);
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct Edge(usize);
pub type AppendGraphVertexMap<T> = VertexMap<Vertex, T>;
pub type AppendGraphEdgeMap<T> = EdgeMap<Edge, T>;
impl Edge {
fn normalize(&self) -> Self {
Self(self.0 & !1)