You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds one test and documentation regarding dijkstras pathfinding
algorithm. I'm not sure exactly how the documentation is generated,
but this adheres pretty strictly to the pattern set in the other
documentation so it should work.
This adds weighted undirected graphs to data structures as well, which
is a good standard implementation for testing the pathfinding algorithms.
* CONTRIBUTORS.md - Add myself
* docs/Data_Structure.rst - Add
+ docs/Pathing.rst - Add documentation for the new pathing/ submodule
* docs/index.rst - Add Pathing to the index
* pygorithm/__init__.py - Add myself to the contributors
* pygorithm/data_structures.py - Add WeightedUndirectedGraph and very minor
indentation changes
+ pygorithm/pathing/__init__.py - In the same format as the others
+ pygorithm/pathing/dijkstra.py - The simplest of pathfinding algorithms
* tests/test_data_structure.py - Add tests for the new graph type
+ tests/test_pathing.py - Test the example shown in the documentation
- **pygorithm.data_structures.WeightedUndirectedGraph** : acts like an object with `graph` (see WeightedUndirectedGraph)
70
+
- **vertex** : any hashable type for the start of the path
71
+
- **vertex** : any hashable type for the end of the path
72
+
- **Return Value** : returns a `List` of vertexes (of the same type as the graph) starting with from and going to to. This algorithm does *not* respect weights.
73
+
74
+
.. function:: dijkstra.get_code()
75
+
76
+
- **Return Value** : returns the code for the ``Dijkstra`` object
0 commit comments