From e3a24894f63d0a22ea6ed97e4a2fd902be955888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Mon, 6 Jul 2026 17:51:15 +0200 Subject: [PATCH] Changed graph::Vertex and graph::Edge to be public to simplify Graph usage --- src/models/graph.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/graph.rs b/src/models/graph.rs index 309d268..15e5b51 100644 --- a/src/models/graph.rs +++ b/src/models/graph.rs @@ -3,9 +3,9 @@ use typed_generational_arena::{Arena, Index}; use crate::maps::{EdgeMap, VertexMap}; use crate::traits::{GraphTopology, GraphTopologyDeletion, IncidenceCursor}; -type Vertex = Index; +pub type Vertex = Index; -type Edge = Index; +pub type Edge = Index; #[derive(Copy, Clone, PartialEq, Eq, Debug)] struct VertexSlot(usize);