mirror of
https://github.com/boostorg/graph.git
synced 2026-01-31 08:12:14 +00:00
Lots of new algorithms and cleanups of old ones
[SVN r27579]
This commit is contained in:
@@ -10,15 +10,10 @@
|
||||
#include "graph.hpp"
|
||||
#include "digraph.hpp"
|
||||
#include <boost/python.hpp>
|
||||
#include "dijkstra_visitor.hpp"
|
||||
|
||||
namespace boost { namespace graph { namespace python {
|
||||
|
||||
#define BGL_PYTHON_VISITOR dijkstra_visitor
|
||||
#define BGL_PYTHON_EVENTS_HEADER "dijkstra_events.hpp"
|
||||
#include "visitor.hpp"
|
||||
#undef BGL_PYTHON_EVENTS_HEADER
|
||||
#undef BGL_PYTHON_VISITOR
|
||||
|
||||
template<typename Graph>
|
||||
void
|
||||
dijkstra_shortest_paths
|
||||
@@ -69,7 +64,6 @@ dijkstra_shortest_paths
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<typename Graph>
|
||||
void export_dijkstra_shortest_paths_in_graph()
|
||||
{
|
||||
@@ -80,7 +74,7 @@ void export_dijkstra_shortest_paths_in_graph()
|
||||
void export_dijkstra_shortest_paths()
|
||||
{
|
||||
using boost::python::arg;
|
||||
|
||||
using boost::python::def;
|
||||
|
||||
def("dijkstra_shortest_paths", &dijkstra_shortest_paths<Graph>,
|
||||
(arg("graph"), arg("root_vertex"),
|
||||
|
||||
Reference in New Issue
Block a user