Codota Logo
NodeBasedNodeContractor.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.graphhopper.routing.ch.NodeBasedNodeContractor
constructor

Best Java code snippets using com.graphhopper.routing.ch.NodeBasedNodeContractor.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: graphhopper/graphhopper

private NodeContractor createNodeContractor() {
  NodeContractor nodeContractor = new NodeBasedNodeContractor(lg, weighting, new PMap());
  nodeContractor.initFromGraph();
  nodeContractor.prepareContraction();
  return nodeContractor;
}
origin: graphhopper/graphhopper

private void initFromGraph() {
  FlagEncoder prepareFlagEncoder = prepareWeighting.getFlagEncoder();
  final EdgeFilter allFilter = DefaultEdgeFilter.allEdges(prepareFlagEncoder);
  maxLevel = prepareGraph.getNodes();
  vehicleAllExplorer = prepareGraph.createEdgeExplorer(allFilter);
  vehicleAllTmpExplorer = prepareGraph.createEdgeExplorer(allFilter);
  // Use an alternative to PriorityQueue as it has some advantages:
  //   1. Gets automatically smaller if less entries are stored => less total RAM used.
  //      Important because Graph is increasing until the end.
  //   2. is slightly faster
  //   but we need the additional oldPriorities array to keep the old value which is necessary for the update method
  sortedNodes = new GHTreeMapComposed();
  oldPriorities = new float[prepareGraph.getNodes()];
  nodeContractor = new NodeBasedNodeContractor(prepareGraph, weighting, pMap);
  nodeContractor.initFromGraph();
}
origin: com.graphhopper/graphhopper-core

private void initFromGraph() {
  ghStorage.freeze();
  FlagEncoder prepareFlagEncoder = prepareWeighting.getFlagEncoder();
  final EdgeFilter allFilter = DefaultEdgeFilter.allEdges(prepareFlagEncoder);
  maxLevel = prepareGraph.getNodes();
  vehicleAllExplorer = prepareGraph.createEdgeExplorer(allFilter);
  vehicleAllTmpExplorer = prepareGraph.createEdgeExplorer(allFilter);
  // Use an alternative to PriorityQueue as it has some advantages:
  //   1. Gets automatically smaller if less entries are stored => less total RAM used.
  //      Important because Graph is increasing until the end.
  //   2. is slightly faster
  //   but we need the additional oldPriorities array to keep the old value which is necessary for the update method
  sortedNodes = new GHTreeMapComposed();
  oldPriorities = new float[prepareGraph.getNodes()];
  nodeContractor = new NodeBasedNodeContractor(dir, ghStorage, prepareGraph, weighting, pMap);
  nodeContractor.initFromGraph();
}
com.graphhopper.routing.chNodeBasedNodeContractor<init>

Popular methods of NodeBasedNodeContractor

  • addShortcuts
    Adds the given shortcuts to the graph.
  • calcShortcutCount
  • extractParams
  • findShortcuts
    Searches for shortcuts and calls the given handler on each shortcut that is found. The graph is not
  • getCoords
  • getMaxVisitedNodesEstimate
  • getOrigEdgeCount
  • isContracted
  • setOrigEdgeCount

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now