mirror of
https://github.com/boostorg/graph.git
synced 2026-01-28 07:12:14 +00:00
Copyrightify and licensify
[SVN r27552]
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
// 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 "basic_graph.hpp"
|
||||
#include "point2d.hpp"
|
||||
|
||||
namespace boost {
|
||||
|
||||
@@ -509,6 +518,8 @@ void export_basic_graph(const char* name)
|
||||
.def("get_vertex_string_map",
|
||||
&Graph::template get_vertex_map<std::string>)
|
||||
.def("get_vertex_object_map", &Graph::template get_vertex_map<object>)
|
||||
.def("get_vertex_point2d_map",
|
||||
&Graph::template get_vertex_map<point2d>)
|
||||
// Edge property maps
|
||||
.def("has_edge_map", &Graph::has_vertex_map)
|
||||
.def("get_edge_index_map", &Graph::get_edge_index_map)
|
||||
@@ -561,6 +572,8 @@ void export_basic_graph(const char* name)
|
||||
declare_property_map<vector_property_map<default_color_type,
|
||||
VertexIndexMap> >
|
||||
::declare("vertex_color_map");
|
||||
declare_property_map<vector_property_map<point2d, VertexIndexMap> >
|
||||
::declare("vertex_point2d_map");
|
||||
|
||||
// Edge property maps
|
||||
declare_readable_property_map<EdgeIndexMap>
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// Copyright 2004-5 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_BASIC_GRAPH_HPP
|
||||
#define BOOST_GRAPH_BASIC_GRAPH_HPP
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "graph.hpp"
|
||||
#include "digraph.hpp"
|
||||
#include <boost/graph/betweenness_centrality.hpp>
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
// 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
|
||||
|
||||
BGL_PYTHON_EVENT(initialize_vertex, vertex_descriptor)
|
||||
BGL_PYTHON_EVENT(discover_vertex, vertex_descriptor)
|
||||
BGL_PYTHON_EVENT(examine_vertex, vertex_descriptor)
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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/breadth_first_search.hpp>
|
||||
#include "graph.hpp"
|
||||
#include "digraph.hpp"
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "digraph.hpp"
|
||||
#include "basic_graph.cpp"
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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_DIGRAPH_HPP
|
||||
#define BOOST_GRAPH_PYTHON_DIGRAPH_HPP
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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
|
||||
BGL_PYTHON_EVENT(initialize_vertex, vertex_descriptor)
|
||||
BGL_PYTHON_EVENT(examine_vertex, vertex_descriptor)
|
||||
BGL_PYTHON_EVENT(examine_edge, edge_descriptor)
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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/dijkstra_shortest_paths.hpp>
|
||||
#include "graph.hpp"
|
||||
#include "digraph.hpp"
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "done.hpp"
|
||||
#include <boost/python.hpp>
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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_DONE_HPP
|
||||
#define BOOST_GRAPH_PYTHON_DONE_HPP
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "graph.hpp"
|
||||
#include "basic_graph.cpp"
|
||||
#include <iostream>
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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_GRAPH_HPP
|
||||
#define BOOST_GRAPH_PYTHON_GRAPH_HPP
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "basic_graph.hpp"
|
||||
#include <boost/graph/graphviz.hpp>
|
||||
#include <fstream>
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
// 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 "basic_graph.cpp"
|
||||
#include "graph.hpp"
|
||||
#include "digraph.hpp"
|
||||
#include <boost/python.hpp>
|
||||
#include "point2d.hpp"
|
||||
|
||||
namespace boost { namespace graph { namespace python {
|
||||
|
||||
@@ -35,6 +44,11 @@ BOOST_PYTHON_MODULE(bgl)
|
||||
.value("black", color_traits<default_color_type>::black())
|
||||
;
|
||||
|
||||
enum_<point2d>("Point2D")
|
||||
.def("x", &point2d::x)
|
||||
.def("y", &point2d::y)
|
||||
;
|
||||
|
||||
export_Graph();
|
||||
export_Digraph();
|
||||
export_betweenness_centrality();
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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 "digraph.hpp"
|
||||
#include <boost/graph/page_rank.hpp>
|
||||
#include "done.hpp"
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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_QUEUE_HPP
|
||||
#define BOOST_GRAPH_PYTHON_QUEUE_HPP
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// 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
|
||||
template<typename Graph>
|
||||
class BGL_PYTHON_VISITOR
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user