From 77ca9c37ca2cb14213d466a03e554816663b8f26 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 5 Mar 2005 14:59:32 +0000 Subject: [PATCH] Works in progress [SVN r27561] --- src/python/fruchterman_reingold.cpp | 25 +++++++++++++++++++++++++ src/python/point2d.hpp | 28 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/python/fruchterman_reingold.cpp create mode 100644 src/python/point2d.hpp diff --git a/src/python/fruchterman_reingold.cpp b/src/python/fruchterman_reingold.cpp new file mode 100644 index 00000000..e148cfda --- /dev/null +++ b/src/python/fruchterman_reingold.cpp @@ -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 +#include "graph.hpp" +#include "digraph.hpp" + +namespace boost { namespace graph { namespace python { + +template +void +fruchterman_reingold_force_directed_layout + (Graph& g, + const vector_property_map* in_pos, + double width, double height, + ) +{ +} + +} } } // end namespace boost::graph::python diff --git a/src/python/point2d.hpp b/src/python/point2d.hpp new file mode 100644 index 00000000..a53cbc82 --- /dev/null +++ b/src/python/point2d.hpp @@ -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 + +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