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:
25
src/python/fruchterman_reingold.cpp
Normal file
25
src/python/fruchterman_reingold.cpp
Normal 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
28
src/python/point2d.hpp
Normal 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
|
||||
Reference in New Issue
Block a user