Skip to content
GitLab
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
9e353964
Commit
9e353964
authored
Dec 20, 2010
by
Tiago Peixoto
Browse files
Modify Graph.vertex() default semantics
parent
037cd9ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/core.py
View file @
9e353964
...
...
@@ -678,10 +678,10 @@ class Graph(object):
"""
return
libcore
.
get_vertices
(
weakref
.
ref
(
self
.
__graph
))
def
vertex
(
self
,
i
,
use_index
=
Fals
e
):
"""Return the
i-th
vertex
from the graph
. If use_index=
True, the vertex
with index i
is returned (which can differ from the
i-th
vertex
in case
of filtered graphs)."""
def
vertex
(
self
,
i
,
use_index
=
Tru
e
):
"""Return the vertex
with index ``i``
. If
``
use_index=
False``, the
``i``-th vertex
is returned (which can differ from the vertex
with index
``i`` in case
of filtered graphs).
"""
if
use_index
:
self
.
stash_filter
(
vertex
=
True
)
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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