Ejemplo n.º 1
0
        public void RemoveEdgeNotFound(IEdgeMutableGraph g)
        {
            IVertex v = g.AddVertex();
            IVertex u = g.AddVertex();
            IEdge   e = g.AddEdge(u, v);

            g.RemoveEdge(e);
            g.RemoveEdge(e);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes temporary edges
 /// </summary>
 /// <param name="g"></param>
 public void RemoveTemporaryEdges(IEdgeMutableGraph g)
 {
     // remove from graph
     foreach (IEdge e in TemporaryEdges)
     {
         g.RemoveEdge(e);
     }
 }
Ejemplo n.º 3
0
        public void RemoveEdge()
        {
            IEdgeMutableGraph g = Graph;
            IVertex           v = g.AddVertex();
            IVertex           u = g.AddVertex();
            IEdge             e = g.AddEdge(u, v);

            g.RemoveEdge(e);
        }
 public void RemoveEdgeNotFound(IEdgeMutableGraph g)
 {
     IVertex v = g.AddVertex();
     IVertex u  = g.AddVertex();
     IEdge e = g.AddEdge(u,v);
     g.RemoveEdge(e);
     g.RemoveEdge(e);
 }
Ejemplo n.º 5
0
		/// <summary>
		/// Removes temporary edges
		/// </summary>
		/// <param name="g"></param>
		public void RemoveTemporaryEdges(IEdgeMutableGraph g)
		{
			// remove from graph
			foreach(IEdge e in TemporaryEdges)
				g.RemoveEdge(e);
		}
 public void RemoveTemporaryEdges(IEdgeMutableGraph g)
 {
     EdgeCollection.Enumerator enumerator = this.TemporaryEdges.GetEnumerator();
     while (enumerator.MoveNext())
     {
         IEdge edge = enumerator.get_Current();
         g.RemoveEdge(edge);
     }
 }