2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-28 07:12:14 +00:00

Works in progress

[SVN r27561]
This commit is contained in:
Douglas Gregor
2005-03-05 14:59:32 +00:00
parent 1e359e31ed
commit 77ca9c37ca
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// Copyright 2005 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#include <boost/graph/fruchterman_reingold.hpp>
#include "graph.hpp"
#include "digraph.hpp"
namespace boost { namespace graph { namespace python {
template<typename Graph>
void
fruchterman_reingold_force_directed_layout
(Graph& g,
const vector_property_map<point2d, typename Graph::VertexIndexMap>* in_pos,
double width, double height,
)
{
}
} } } // end namespace boost::graph::python

28
src/python/point2d.hpp Normal file
View File

@@ -0,0 +1,28 @@
// Copyright 2005 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#ifndef BOOST_GRAPH_PYTHON_POINT2D_HPP
#define BOOST_GRAPH_PYTHON_POINT2D_HPP
#include <iostream>
namespace boost { namespace graph { namespace python {
struct point2d
{
double x;
double y;
};
inline std::ostream& operator<<(std::ostream& out, point2d p)
{ return out << p.x << ' ' << p.y; }
inline std::istream& operator>>(std::istream& in, point2d& p)
{ return in >> p.x >> p.y; }
} } } // end namespace boost::graph::python
#endif // BOOST_GRAPH_PYTHON_POINT2D_HPP