1
// Copyright 2005 The Trustees of Indiana University.
3
// Use, modification and distribution is subject to the Boost Software
4
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5
// http://www.boost.org/LICENSE_1_0.txt)
7
// Authors: Douglas Gregor
9
#include <boost/graph/circle_layout.hpp>
11
#include "digraph.hpp"
12
#include "point2d.hpp"
14
namespace boost { namespace graph { namespace python {
16
template<typename Graph>
20
const vector_property_map<point2d, typename Graph::VertexIndexMap>* in_pos,
23
typedef vector_property_map<point2d, typename Graph::VertexIndexMap>
27
in_pos? *in_pos : g.template get_vertex_map<point2d>("position");
29
circle_graph_layout(g, pos, radius);
32
void export_circle_graph_layout()
34
using boost::python::arg;
35
using boost::python::def;
37
def("circle_graph_layout",
38
&circle_graph_layout<Graph>,
41
(vector_property_map<point2d, Graph::VertexIndexMap>*)0,
42
arg("radius") = 250.0));
44
def("circle_graph_layout",
45
&circle_graph_layout<Digraph>,
48
(vector_property_map<point2d, Digraph::VertexIndexMap>*)0,
49
arg("radius") = 250.0));
52
} } } // end namespace boost::graph::python