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
4e66070a
Commit
4e66070a
authored
Nov 08, 2020
by
Tiago Peixoto
Browse files
Fix docstrings
parent
b395146c
Pipeline
#745
passed with stage
in 61 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/quickstart.rst
View file @
4e66070a
...
...
@@ -348,8 +348,8 @@ vertices in the graph.
is being used. Removal during iteration will cause bad things to
happen.
Faster iteration over vertices and edges without descriptor
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Faster iteration over vertices and edges without descriptor
s
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
The mode of iteration considered above is convenient, but requires the
creation of vertex and edge descriptor objects, which incurs a
...
...
@@ -389,8 +389,8 @@ The equivalent of the above examples can be obtained as:
9
10
11
(
0, 1
)
(
2, 3
)
[
0, 1
]
[
2, 3
]
and likewise for the iteration over the neighborhood of a vertex:
...
...
@@ -405,9 +405,9 @@ and likewise for the iteration over the neighborhood of a vertex:
.. testoutput::
:hide:
(
0, 1
)
[
0, 1
]
1
(
2, 3
)
[
2, 3
]
3
...
...
src/graph_tool/__init__.py
View file @
4e66070a
...
...
@@ -1813,8 +1813,6 @@ class Graph(object):
2
3
4
5
"""
viter
=
libcore
.
get_vertex_iter
(
self
.
__graph
,
0
,
[
vp
.
_get_any
()
for
vp
in
vprops
])
...
...
@@ -1927,9 +1925,14 @@ class Graph(object):
... print(s, t, i)
... if s == 5:
... break
1 0 0
2 0 1
2 1 2
3 4 0
5 0 1
3 0 3
3 1 4
3 2 5
4 0 6
5 0 7
"""
eiter
=
libcore
.
get_edge_iter
(
self
.
__graph
,
0
,
[
ep
.
_get_any
()
for
ep
in
eprops
])
...
...
Write
Preview
Markdown
is supported
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