congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrepareContractionHierarchies.fromGraphHopperStorage
Code IndexAdd Tabnine to your IDE (free)

How to use
fromGraphHopperStorage
method
in
com.graphhopper.routing.ch.PrepareContractionHierarchies

Best Java code snippets using com.graphhopper.routing.ch.PrepareContractionHierarchies.fromGraphHopperStorage (Showing top 2 results out of 315)

origin: graphhopper/graphhopper

public void createPreparations(GraphHopperStorage ghStorage, TraversalMode traversalMode) {
  if (!isEnabled() || !preparations.isEmpty())
    return;
  if (weightings.isEmpty())
    throw new IllegalStateException("No CH weightings found");
  traversalMode = getNodeBase();
  for (Weighting weighting : getWeightings()) {
    PrepareContractionHierarchies tmpPrepareCH = PrepareContractionHierarchies.fromGraphHopperStorage(
        ghStorage, weighting, traversalMode);
    tmpPrepareCH.setParams(pMap);
    addPreparation(tmpPrepareCH);
  }
}
origin: graphhopper/graphhopper

@Override
public RoutingAlgorithmFactory createFactory(GraphHopperStorage ghStorage, AlgorithmOptions opts) {
  ghStorage.freeze();
  PrepareContractionHierarchies ch = PrepareContractionHierarchies.fromGraphHopperStorage(
      ghStorage, opts.getWeighting(), TraversalMode.NODE_BASED);
  ch.doWork();
  return ch;
}
com.graphhopper.routing.chPrepareContractionHierarchiesfromGraphHopperStorage

Popular methods of PrepareContractionHierarchies

  • getWeighting
  • <init>
  • doWork
  • calculatePriority
    Calculates the priority of adjNode v without changing the graph. Warning: the calculated priority mu
  • close
  • contractNodes
  • getTimesAsString
  • initFromGraph
  • prepareNodes
  • addShortcuts
    Introduces the necessary shortcuts for adjNode v in the graph.
  • findShortcuts
    Finds shortcuts, does not change the underlying graph.
  • getCoords
  • findShortcuts,
  • getCoords,
  • getOrigEdgeCount,
  • setLazyUpdates,
  • setLogMessages,
  • setNeighborUpdates,
  • setOrigEdgeCount,
  • setPeriodicUpdates,
  • createAStarBidirection

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BoxLayout (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now