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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user