Skip to content
forked from rxdu/libgraph

C++ class templates for graph construction and A* search.

License

Notifications You must be signed in to change notification settings

zetian/libgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph and A* Search

C++ class templates for constructing graphs and performing A* search. This library is distributed under MIT license.

1. Requirement

  • A compiler that supports C++11

This is a header-only library, so you only need to include the header files in the "graph" folder to use the data structures. Refer to the demo for more details.

The CMake configuration in this repository is only used to compile the demo code and may also serve as an example on how to use this library in a CMake project.

2. Build Document

You need to have doxygen to build the document.

$ sudo apt-get install doxygen
$ cd docs
$ doxygen doxygen/Doxyfile

3. Construct a graph

You can associate a state to each vertex and a transition to each edge.

The only requirement is you need to define a function inside your state type with the signature

uint64_t GetUniqueID() const
{
    <generate and return an unique id>
}

This function is used to check if two states are the same so that only one vertex is created for a state inside the graph.

See examples in "demo" folder for more details.

About

C++ class templates for graph construction and A* search.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.7%
  • CMake 3.3%