예제 #1
0
        public void ClearVertexTargetSource(IEdgeMutableGraph g)
        {
            IVertex u = g.AddVertex();
            IVertex v = g.AddVertex();

            g.AddEdge(u, v);
            g.ClearVertex(v);
            g.ClearVertex(u);
        }
예제 #2
0
        public void ClearVertexSourceTarget()
        {
            IEdgeMutableGraph g = Graph;
            IVertex           v = g.AddVertex();
            IVertex           u = g.AddVertex();

            g.AddEdge(u, v);
            g.ClearVertex(u);
            g.ClearVertex(v);
        }
 public void ClearVertexTargetSource(IEdgeMutableGraph g)
 {
     IVertex u  = g.AddVertex();
     IVertex v = g.AddVertex();
     g.AddEdge(u,v);
     g.ClearVertex(v);
     g.ClearVertex(u);
 }