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
9b12a427
Commit
9b12a427
authored
Feb 21, 2009
by
Tiago Peixoto
Browse files
Fix trivial error in node/edge search functions
parent
52eaa36f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/util/__init__.py
View file @
9b12a427
...
...
@@ -25,20 +25,20 @@ __all__ = ["find_vertex", "find_vertex_range", "find_edge", "find_edge_range"]
def
find_vertex
(
g
,
deg
,
match
):
ret
=
libgraph_tool_util
.
\
find_vertex_range
(
g
.
_Graph__graph
,
_degree
(
deg
),
(
match
,
match
))
find_vertex_range
(
g
.
_Graph__graph
,
_degree
(
g
,
deg
),
(
match
,
match
))
return
ret
def
find_vertex_range
(
g
,
deg
,
range
):
ret
=
libgraph_tool_util
.
\
find_vertex_range
(
g
.
_Graph__graph
,
_degree
(
deg
),
range
)
find_vertex_range
(
g
.
_Graph__graph
,
_degree
(
g
,
deg
),
range
)
return
ret
def
find_edge
(
g
,
prop
,
match
):
ret
=
libgraph_tool_util
.
\
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
prop
,
"e"
),
(
match
,
match
))
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
"e"
,
g
,
prop
),
(
match
,
match
))
return
ret
def
find_edge_range
(
g
,
prop
,
range
):
ret
=
libgraph_tool_util
.
\
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
prop
,
"e"
),
range
)
find_edge_range
(
g
.
_Graph__graph
,
_prop
(
"e"
,
g
,
prop
),
range
)
return
ret
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