From 4e66070a9331e7ff9cbda00f1cf01768d68df199 Mon Sep 17 00:00:00 2001 From: Tiago de Paula Peixoto Date: Sun, 8 Nov 2020 20:03:44 +0100 Subject: [PATCH] Fix docstrings --- doc/quickstart.rst | 12 ++++++------ src/graph_tool/__init__.py | 11 +++++++---- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/doc/quickstart.rst b/doc/quickstart.rst index 2fa9543f..fe413d0d 100644 --- a/doc/quickstart.rst +++ b/doc/quickstart.rst @@ -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 descriptors +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 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 diff --git a/src/graph_tool/__init__.py b/src/graph_tool/__init__.py index 52f549d2..4100ef7a 100644 --- a/src/graph_tool/__init__.py +++ b/src/graph_tool/__init__.py @@ -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]) -- GitLab