/// <summary> Creates a minimal path iterator for the specified undirected graph.</summary> /// <param name="g">the specified graph /// </param> /// <param name="sourceVertex">the start vertex for the paths /// </param> /// <param name="targetVertex">the target vertex for the paths /// </param> public MinimalPathIterator(SimpleGraph g, System.Object sourceVertex, System.Object targetVertex) { this.g = g; this.sourceVertex = sourceVertex; this.targetVertex = targetVertex; createShortestPathGraph(); }
private System.Collections.IList edgeList(org._3pq.jgrapht.Graph g, System.Collections.IList vertexList) { System.Collections.IList edgeList = new System.Collections.ArrayList(vertexList.Count - 1); System.Collections.IEnumerator vertices = vertexList.GetEnumerator(); //UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'" System.Object currentVertex = vertices.Current; //UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'" while (vertices.MoveNext()) { //UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'" System.Object nextVertex = vertices.Current; edgeList.Add(g.getAllEdges(currentVertex, nextVertex)[0]); currentVertex = nextVertex; } return(edgeList); }
internal AuxiliaryGraph2(SimpleCycleBasis enclosingInstance, org._3pq.jgrapht.Graph graph, System.Collections.IList edgeList, bool[] ui, bool[] uj) { InitBlock(enclosingInstance); g = graph; this.ui = ui; this.uj = uj; }
public AuxiliaryGraph(SimpleCycleBasis enclosingInstance, org._3pq.jgrapht.Graph graph, bool[] u) { InitBlock(enclosingInstance); g = graph; this.u = u; }
public MyBreadthFirstIterator(org._3pq.jgrapht.Graph g, System.Object startVertex) : base(g, startVertex) { }