Skip to content

Cpp library, which allows creating graphs and finding paths by using Dijkstra or ALT algorithms.

License

Notifications You must be signed in to change notification settings

AlanceLau/PathingLib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathing DLL

Allows creating graphs and finding paths by using Dijkstra or ALT algorithms.

Example Usage

Dijkstra

PathingLib::Graph g = PathingLib::Graph::loadGraphFromFile("graphNodes.txt", "graphEdges.txt");
PathingLib::Path p = PathingLib::Dijkstra::getPath(0, 5, g);
cout << "Path distance: " << p.getDistance('m');

ALT

PathingLib::Graph g = PathingLib::Graph::loadGraphFromFile("graphNodes.txt", "graphEdges.txt");
PathingLib::ALT alt(g, 4);
PathingLib::Path p = alt.getPath(0, 1000);
cout << "Path distance: " << p.getDistance('m');
For better clarity see documentation and example client.

Graphic result

Result of example client.

Made by using

  • C++ 14
  • Microsoft Visual Studio 2017
  • Microsoft Visual C++ 2017 14.10.25008

License

MIT

About

Cpp library, which allows creating graphs and finding paths by using Dijkstra or ALT algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.5%
  • TeX 10.5%
  • C++ 8.6%
  • CSS 8.4%
  • JavaScript 8.1%
  • C 0.6%
  • Other 0.3%