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
e4d243fa
Commit
e4d243fa
authored
Oct 09, 2017
by
Tiago Peixoto
Browse files
quickstart.rst: `assert` is not a function call
parent
cae5227e
Pipeline
#380
passed with stage
in 520 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/quickstart.rst
View file @
e4d243fa
...
...
@@ -47,7 +47,7 @@ method. The "directedness" of the graph can be queried with the
>>> ug = Graph()
>>> ug.set_directed(False)
>>> assert
(
ug.is_directed() == False
)
>>> assert
ug.is_directed() == False
A graph can also be created by providing another graph, in which case
the entire graph (and its internal property maps, see
...
...
@@ -311,7 +311,7 @@ and :meth:`~graph_tool.Vertex.in_neighbors` methods, respectively.
# the edge and neighbors order always match
for e, w in izip(v.out_edges(), v.out_neighbors()):
assert
(
e.target() == w
)
assert
e.target() == w
The code above will print the out-edges and out-neighbors of all
vertices in the graph.
...
...
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