summaryrefslogtreecommitdiff
path: root/src/directed_graphs.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-05-20 01:21:51 +1000
committerJed Barber <jjbarber@y7mail.com>2020-05-20 01:21:51 +1000
commitd07979218ea80c58e64148d9638ed3e6195ff6ed (patch)
treedef34d24f16923e8a05fc652e847240d8eb16865 /src/directed_graphs.ads
parent65c9afbdc7daf588aaff505b2c148c4218f231d5 (diff)
Initial unit tests
Diffstat (limited to 'src/directed_graphs.ads')
-rw-r--r--src/directed_graphs.ads17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/directed_graphs.ads b/src/directed_graphs.ads
index 925948d..d89b647 100644
--- a/src/directed_graphs.ads
+++ b/src/directed_graphs.ads
@@ -795,8 +795,6 @@ private
type Graph_Access is access all Graph;
- Empty_Graph : constant Graph := (Ada.Finalization.Controlled with others => <>);
-
@@ -816,11 +814,6 @@ private
Position : out Cursor);
for Cursor'Read use Read;
- No_Element : constant Cursor :=
- (Container => null,
- Place => Node_Maps.No_Element,
- Sub_Index => Node_Vectors.Extended_Index'First);
-
@@ -897,6 +890,16 @@ private
+ Empty_Graph : constant Graph := (Ada.Finalization.Controlled with others => <>);
+
+ No_Element : constant Cursor :=
+ (Container => null,
+ Place => Node_Maps.No_Element,
+ Sub_Index => Node_Vectors.Extended_Index'First);
+
+
+
+
type Iterator is new Ada.Finalization.Limited_Controlled and
Graph_Iterator_Interfaces.Reversible_Iterator with
record