Ejemplo n.º 1
0
 public ABVertex(VertexType type, TwinGraph twinGraph)
 {
     Type        = type;
     _inL        = false;
     D           = new LinkedList <ABVertex>();
     Descendants = new LinkedList <IStackableVertex>();
     IsExpanded  = false;
     TwinGraph   = twinGraph;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public MDFS(TwinGraph tg, IVertexStack k, LinkedList <ABVertex> l)
 {
     _tg = tg;
     _k  = k;
     _l  = l;
 }
Ejemplo n.º 4
0
 public ABVertex(VertexType type, string name, TwinGraph twinGraph) : this(type, twinGraph)
 {
     _name = name;
 }