Commit 5c872d16 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix doctest in min_spanning_tree()

parent 13d0ae0a
Pipeline #66 passed with stage
...@@ -445,15 +445,15 @@ def min_spanning_tree(g, weights=None, root=None, tree_map=None): ...@@ -445,15 +445,15 @@ def min_spanning_tree(g, weights=None, root=None, tree_map=None):
>>> tree = gt.min_spanning_tree(g, weights=weight) >>> tree = gt.min_spanning_tree(g, weights=weight)
>>> gt.graph_draw(g, pos=pos, output="triang_orig.pdf") >>> gt.graph_draw(g, pos=pos, output="triang_orig.pdf")
<...> <...>
>>> g.set_edge_filter(tree) >>> u = gt.GraphView(g, efilt=tree)
>>> gt.graph_draw(g, pos=pos, output="triang_min_span_tree.pdf") >>> gt.graph_draw(u, pos=pos, output="triang_min_span_tree.pdf")
<...> <...>
.. testcode:: .. testcode::
:hide: :hide:
gt.graph_draw(g, pos=pos, output="triang_orig.png") gt.graph_draw(g, pos=pos, output="triang_orig.png")
gt.graph_draw(g, pos=pos, output="triang_min_span_tree.png") gt.graph_draw(u, pos=pos, output="triang_min_span_tree.png")
.. image:: triang_orig.* .. image:: triang_orig.*
:width: 400px :width: 400px
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment