skip to navigation
skip to content

Not Logged In

pypaths 0.1.1

Small, but extensible, pathfinding library

PyPaths is a small library useful for computing paths across simple in-memory graphs. Try it out by installing with pip:

> pip install pypaths

Or, alternatively, install from source:

> git clone
> cd pypaths
> python install

For the simplest default case, usage is very simple:

from pypaths import astar

finder = astar.pathfinder()

print finder( (0,0), (2,2) )

We can also provide some parameters to help the algoriths understand your specific graph:

from pypaths import astar

finder = astar.pathfinder(
                  distance=my_distance_function,           # Calculate the absolute distance between two nodes
                  cost=my_cost_function,                   # Calculate the heuristic cost between nodes
                  neighbors=my_neighbors_function)         # Calculate the list of neighbors for a given node

print finder( "MY NODE 1", "MY NODE 3" )
File Type Py Version Uploaded on Size
pypaths-0.1.1.tar.gz (md5) Source 2014-07-24 2KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 27 downloads in the last week
  • 40 downloads in the last month