Skip to content

Commit 711835f

Browse files
author
Matthias Koeppe
committed
src/sage/graphs/base/boost_graph.pyx: Add missing doctest prompts
1 parent 978d318 commit 711835f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/base/boost_graph.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,15 +561,15 @@ cpdef bandwidth_heuristics(g, algorithm='cuthill_mckee'):
561561
562562
Given a wrong algorithm::
563563
564-
from sage.graphs.base.boost_graph import bandwidth_heuristics
564+
sage: from sage.graphs.base.boost_graph import bandwidth_heuristics
565565
sage: bandwidth_heuristics(graphs.PathGraph(3), algorithm='tip top')
566566
Traceback (most recent call last):
567567
...
568568
ValueError: unknown algorithm 'tip top'
569569
570570
Given a graph with no edges::
571571
572-
from sage.graphs.base.boost_graph import bandwidth_heuristics
572+
sage: from sage.graphs.base.boost_graph import bandwidth_heuristics
573573
sage: bandwidth_heuristics(Graph())
574574
(0, [])
575575
sage: bandwidth_heuristics(graphs.RandomGNM(10,0)) # needs networkx

0 commit comments

Comments
 (0)