Tabnine Logo
PrepareContractionHierarchies.initFromGraph
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: graphhopper/graphhopper

@Override
public void doSpecificWork() {
  allSW.start();
  initFromGraph();
  runGraphContraction();
  logger.info("took:" + (int) allSW.stop().getSeconds() + "s "
      + ", new shortcuts: " + nf(nodeContractor.getAddedShortcutsCount())
      + ", initSize:" + nf(initSize)
      + ", " + prepareWeighting
      + ", periodic:" + params.getPeriodicUpdatesPercentage()
      + ", lazy:" + params.getLastNodesLazyUpdatePercentage()
      + ", neighbor:" + params.getNeighborUpdatePercentage()
      + ", " + getTimesAsString()
      + ", lazy-overhead: " + (int) (100 * ((checkCounter / (double) initSize) - 1)) + "%"
      + ", " + Helper.getMemInfo());
  int edgeCount = prepareGraph.getOriginalEdges();
  logger.info("graph now - num edges: {}, num nodes: {}, num shortcuts: {}",
      nf(edgeCount), nf(prepareGraph.getNodes()), nf(prepareGraph.getEdges() - edgeCount));
}
origin: com.graphhopper/graphhopper

@Override
public void doWork()
{
  if (prepareFlagEncoder == null)
    throw new IllegalStateException("No vehicle encoder set.");
  if (prepareWeighting == null)
    throw new IllegalStateException("No weight calculation set.");
  allSW.start();
  super.doWork();
  initFromGraph();
  if (!prepareNodes())
    return;
  contractNodes();
}
origin: com.rgi-corp/graphhopper

@Override
public void doWork() {
  if (prepareWeighting == null)
    throw new IllegalStateException("No weight calculation set.");
  allSW.start();
  super.doWork();
  initFromGraph();
  if (!prepareNodes())
    return;
  contractNodes();
}
origin: com.graphhopper/graphhopper-core

@Override
public void doSpecificWork() {
  allSW.start();
  initFromGraph();
  runGraphContraction();
  logger.info("took:" + (int) allSW.stop().getSeconds() + "s "
      + ", new shortcuts: " + nf(nodeContractor.getAddedShortcutsCount())
      + ", initSize:" + nf(initSize)
      + ", " + prepareWeighting
      + ", periodic:" + params.getPeriodicUpdatesPercentage()
      + ", lazy:" + params.getLastNodesLazyUpdatePercentage()
      + ", neighbor:" + params.getNeighborUpdatePercentage()
      + ", " + getTimesAsString()
      + ", lazy-overhead: " + (int) (100 * ((checkCounter / (double) initSize) - 1)) + "%"
      + ", " + Helper.getMemInfo());
  int edgeCount = ghStorage.getAllEdges().length();
  logger.info("graph now - num edges: {}, num nodes: {}, num shortcuts: {}",
      nf(edgeCount), nf(ghStorage.getNodes()), nf(prepareGraph.getAllEdges().length() - edgeCount));
}
com.graphhopper.routing.chPrepareContractionHierarchiesinitFromGraph

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
  • prepareNodes
  • addShortcuts
    Introduces the necessary shortcuts for adjNode v in the graph.
  • findShortcuts
    Finds shortcuts, does not change the underlying graph.
  • fromGraphHopperStorage
  • getCoords
  • fromGraphHopperStorage,
  • getCoords,
  • getOrigEdgeCount,
  • setLazyUpdates,
  • setLogMessages,
  • setNeighborUpdates,
  • setOrigEdgeCount,
  • setPeriodicUpdates,
  • createAStarBidirection

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • BoxLayout (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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