Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex Henrie
graph-tool
Commits
4e66070a
Commit
4e66070a
authored
Nov 08, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docstrings
parent
b395146c
Pipeline
#747
passed with stage
in 61 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
doc/quickstart.rst
doc/quickstart.rst
+6
-6
src/graph_tool/__init__.py
src/graph_tool/__init__.py
+7
-4
No files found.
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