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

Added is_directed member function

[SVN r27651]
This commit is contained in:
Douglas Gregor
2005-03-14 16:27:52 +00:00
parent 426d8e1244
commit 5ce0418131
2 changed files with 5 additions and 1 deletions

View File

@@ -493,6 +493,7 @@ void export_basic_graph(const char* name)
class_<basic_graph<DirectedS> >(name)
// Constructors
.def(init<std::string, graph_file_kind>())
.def("is_directed", &Graph::is_directed)
// Vertex List Graph concept
.def("num_vertices", &Graph::num_vertices)
.add_property("vertices", range(&Graph::vertices_begin,

View File

@@ -209,7 +209,10 @@ class basic_graph
basic_graph();
basic_graph(const std::string& filename, graph_file_kind kind);
bool is_directed() const
{ return is_convertible<directed_category, directed_tag>::value; }
Vertex add_vertex();
void clear_vertex(Vertex vertex);
void remove_vertex(Vertex vertex);