Commit cd4cef2b authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Modify default constructor of adj_list<>::edge_descriptor

Now default constructed edge descriptors are impossible to occur in
regular graphs.
parent e89b2d90
......@@ -137,7 +137,10 @@ public:
struct edge_descriptor
{
edge_descriptor() {};
edge_descriptor()
: s(std::numeric_limits<vertex_t>::max()),
t(std::numeric_limits<vertex_t>::max()),
idx(std::numeric_limits<vertex_t>::max()), inv(false) {};
edge_descriptor(vertex_t s, vertex_t t, vertex_t idx, bool inv)
: s(s), t(t), idx(idx), inv(inv) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment