Add concrete type aliases of VertexMap and EdgeMap for Graph and AppendGraph
This commit is contained in:
+3
-1
@@ -4,9 +4,11 @@ use crate::maps::{EdgeMap, VertexMap};
|
||||
use crate::traits::{GraphTopology, GraphTopologyDeletion, IncidenceCursor};
|
||||
|
||||
pub type Vertex = Index<VertexIncidenceHeader, usize, usize>;
|
||||
|
||||
pub type Edge = Index<IncidenceEntry, usize, usize>;
|
||||
|
||||
pub type GraphVertexMap<T> = VertexMap<Vertex, T>;
|
||||
pub type GraphEdgeMap<T> = EdgeMap<Edge, T>;
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
struct VertexSlot(usize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user