GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kit-algo/InertialFlowCutter: C++ implementation and evaluation for the InertialFlowCutter algorithm to compute Customizable Contraction Hierarchy orders.

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
cmake
cmake
 
 
evaluation
evaluation
 
 
extern
extern
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
customize.cpp
customize.cpp
 
 
inertialflowcutter_order.py
inertialflowcutter_order.py
 
 
query.cpp
query.cpp
 
 

Repository files navigation

InertialFlowCutter

C++ Implementation and evaluation scripts for the InertialFlowCutter algorithm to compute Customizable Contraction Hierarchy orders.

If you use this code in a publication, please cite our TR https://arxiv.org/abs/1906.11811

All code in src/ other than flow_cutter_accelerated.h, ford_fulkerson.h was written by Ben Strasser. We modified separator.h, min_fill_in.h and inertial_flow.h. Find his code at https://github.com/kit-algo/flow-cutter.

To compile the code you need a recent C++14 ready compiler (e.g. g++ version >= 8.2) and the Intel Threading Building Blocks (TBB) library. You also need the readline library https://tiswww.case.edu/php/chet/readline/rltop.html.

We use KaHiP and RoutingKit as submodules. For these, you will also need OpenMP and MPI (for KaHiP, even though we don't use the distributed partitioner). If you don't want to use them, you can disable them in the CMakeLists.txt.

Building

Run

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

from the top-level directory of this repository.

Building on macOS

If you want to build the RoutingKit query and customization on macOS, additional steps are required. As macOS does not support aligned_alloc you need to modify extern/RoutingKit/generate_make_file and change line 10 to

compiler_options = ["-Wall", "-DNDEBUG", "-march=native", "-ffast-math", "-std=c++11", "-O3", "-DROUTING_KIT_NO_ALIGNED_ALLOC"]

Then, run generate_make_file to build a suitable Makefile.

When running cmake, add the flags -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++. This ensures that gcc is used, as CMake fails to properly autodetect gcc on macOS.

Computing a Contraction Order

Currently, we expect the input graph in RoutingKit's format, i.e. a directory containing five files first_out, head, travel_time, latitude, longitude in RoutingKit's binary vector format. The first two represent the graph in CSR format, the third contains the metric information, the fourth and fifth the geo-coordinates. You can convert from Metis and Dimacs format using tools in this repository, see evaluation/README.md for further details; or write your own converter.

Run

python3 inertialflowcutter_order.py <graph_path> <order_path>

to obtain a CCH order and store it at <order_path> using the default parameters suggested in the paper. The order is again in the RoutingKit binary vector format. You can instead get it in text format by uncommenting line 44. For more parallelism (yes, please), increase the thread_count parameter in line 36. You can specify the number of cutters in line 32, however more than 8 do not seem particularly useful.

About

C++ implementation and evaluation for the InertialFlowCutter algorithm to compute Customizable Contraction Hierarchy orders.

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

17 stars

Watchers

5 watching

Forks

19 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.