Package net.wigis.graph.dnv

Examples of net.wigis.graph.dnv.EdgeQueue


   * @return the float
   */
  public static float findShortestPathDistance( DNVNode startNode, DNVNode goalNode )
  {
    Map<Integer, Float> visitedNodes = new HashMap<Integer, Float>();
    EdgeQueue edgeQueue = new EdgeQueue();
    addTimer.reset();
    float value = findShortestPathDistance( edgeQueue, visitedNodes, 0, Float.POSITIVE_INFINITY, startNode, goalNode, true, false );

    return value;
  }
View Full Code Here


   * @return the float
   */
  public static float findShortestPathDistanceInNumberOfHops( DNVNode startNode, DNVNode goalNode )
  {
    Map<Integer, Float> visitedNodes = new HashMap<Integer, Float>();
    EdgeQueue edgeQueue = new EdgeQueue();
    addTimer.reset();
    float value = findShortestPathDistance( edgeQueue, visitedNodes, 0, Float.POSITIVE_INFINITY, startNode, goalNode, false, false );

    return value;
  }
View Full Code Here

TOP

Related Classes of net.wigis.graph.dnv.EdgeQueue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.