Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
f2c93fc6
Commit
f2c93fc6
authored
Mar 11, 2016
by
Tiago Peixoto
Browse files
Fix bug in find_edge_range()
This fixes issue
#281
.
parent
31137b5b
Pipeline
#122
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/util/__init__.py
View file @
f2c93fc6
...
@@ -88,7 +88,7 @@ def find_edge(g, prop, match):
...
@@ -88,7 +88,7 @@ def find_edge(g, prop, match):
def
find_edge_range
(
g
,
prop
,
range
):
def
find_edge_range
(
g
,
prop
,
range
):
"""Find all edges `e` for which `range[0] <= prop[e] <= range[1]`. The
"""Find all edges `e` for which `range[0] <= prop[e] <= range[1]`. The
parameter prop can be either a :class:`~graph_tool.PropertyMap`."""
parameter prop can be either a :class:`~graph_tool.PropertyMap`."""
convert
=
converter
(
prop
.
value_type
())
convert
=
_
converter
(
prop
.
value_type
())
ret
=
libgraph_tool_util
.
\
ret
=
libgraph_tool_util
.
\
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
"e"
,
g
,
prop
),
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
"e"
,
g
,
prop
),
(
convert
(
range
[
0
]),
convert
(
range
[
1
])))
(
convert
(
range
[
0
]),
convert
(
range
[
1
])))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment