コード例 #1
0
ファイル: MutableGraphTest.cs プロジェクト: tmauldin/mb-unit
        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);
        }
コード例 #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);
     }
 }
コード例 #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);
        }
コード例 #4
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);
 }
コード例 #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);
		}
コード例 #6
0
 public void RemoveTemporaryEdges(IEdgeMutableGraph g)
 {
     EdgeCollection.Enumerator enumerator = this.TemporaryEdges.GetEnumerator();
     while (enumerator.MoveNext())
     {
         IEdge edge = enumerator.get_Current();
         g.RemoveEdge(edge);
     }
 }