Commit 7bedab86 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix correct overloading of <= operator in find_vertex/edge() functions

parent 6aa4cfb9
......@@ -86,7 +86,7 @@ struct find_vertices
if (v == graph_traits<Graph>::null_vertex())
continue;
value_type val = deg(v, g);
if (val >= range.first && val <= range.second)
if (range.first <= val && val <= range.second)
{
PythonVertex pv(pg, v);
{
......@@ -139,7 +139,7 @@ struct find_edges
}
value_type val = get(prop, *e);
if (val >= range.first && val <= range.second)
if (range.first <= val && val <= range.second)
{
PythonEdge<Graph> pe(pg, *e);
{
......
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