Exemple #1
0
 public ABVertex(VertexType type, TwinGraph twinGraph)
 {
     Type        = type;
     _inL        = false;
     D           = new LinkedList <ABVertex>();
     Descendants = new LinkedList <IStackableVertex>();
     IsExpanded  = false;
     TwinGraph   = twinGraph;
 }
 public TwinVertex(Vertex precursor, TwinGraph tg)
 {
     Precursor = precursor;
     Graph     = tg;
     if (precursor != null)
     {
         A = new ABVertex(VertexType.A, precursor.Name, Graph);
         B = new ABVertex(VertexType.B, precursor.Name, Graph);
     }
     else
     {
         A = new ABVertex(VertexType.A, Graph);
         B = new ABVertex(VertexType.B, Graph);
     }
     A.SetTwin(B);
     B.SetTwin(A);
 }
Exemple #3
0
 public MDFS(TwinGraph tg, IVertexStack k, LinkedList <ABVertex> l)
 {
     _tg = tg;
     _k  = k;
     _l  = l;
 }
Exemple #4
0
 public ABVertex(VertexType type, string name, TwinGraph twinGraph) : this(type, twinGraph)
 {
     _name = name;
 }