diff trunk/src/docgen/graphutils/primitives.d @ 462:b7503e02fbe7

Docgen code for handling public imports.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Tue, 30 Oct 2007 20:52:29 +0200
parents 4e5b35df3060
children ec8dd7b8bf0c
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/primitives.d	Tue Oct 30 18:17:14 2007 +0100
+++ b/trunk/src/docgen/graphutils/primitives.d	Tue Oct 30 20:52:29 2007 +0200
@@ -9,17 +9,24 @@
   Aggregation,
   Association,
   Composition,
-  CyclicDependency,
   Dependency,
   Generalization,
   Inheritance,
-  Reserved // for the cycle algorithm
+  PublicDependency
+}
+
+enum CycleType {
+  Unspecified,
+  Cyclefree,
+  Cyclic,
+  Reserved
 }
 
 class Edge {
   Vertex outgoing;
   Vertex incoming;
   EdgeType type;
+  CycleType cycleType; // used by the cycle algorithm
 
   this(Vertex o, Vertex i, EdgeType type = EdgeType.Unspecified) {
     this.outgoing = o;
@@ -28,7 +35,7 @@
   }
 
   bool isCyclic() {
-    return type == EdgeType.CyclicDependency;
+    return cycleType == CycleType.Cyclic;
   }
 }