diff --git a/doc/weights.xml b/doc/weights.xml index e71fa6833..f546d590f 100644 --- a/doc/weights.xml +++ b/doc/weights.xml @@ -86,7 +86,8 @@ gap> EdgeWeights(g); See . g := EdgeWeightedDigraph([[2], [1], [1, 2]], [[12], [5], [6, 9]]); +gap> g := EdgeWeightedDigraph([[2], [1], [1, 2]], +> [[12], [5], [6, 9]]); gap> DigraphEdgeWeightedMinimumSpanningTree(g); rec( mst := , total := 11 @@ -115,12 +116,14 @@ rec( mst := , total := 11 See . g := EdgeWeightedDigraph([[2, 3], [4], [4], []], [[5, 1], [6], [11], []]); +gap> g := EdgeWeightedDigraph([[2, 3], [4], [4], []], +> [[5, 1], [6], [11], []]); gap> DigraphEdgeWeightedShortestPath(g, 1); rec( distances := [ 0, 5, 1, 11 ], edges := [ fail, 1, 2, 1 ], parents := [ fail, 1, 1, 2 ] ) -gap> ncg := EdgeWeightedDigraph([[2], [3], [1]], [[-1], [-2], [-3]]); +gap> ncg := EdgeWeightedDigraph([[2], [3], [1]], +> [[-1], [-2], [-3]]); gap> DigraphEdgeWeightedShortestPath(ncg, 1); Error, negative cycle exists, @@ -169,7 +172,8 @@ rec( distances := [ [ 0, 1, 3 ], [ 5, 0, 2 ], [ 3, 4, 0 ] ], See . g := EdgeWeightedDigraph([[2, 2], [3], []], [[3, 2], [1], []]); +gap> g := EdgeWeightedDigraph([[2, 2], [3], []], +> [[3, 2], [1], []]); gap> DigraphMaximumFlow(g, 1, 3); rec( flows := [ [ ], [ 1, 0 ], [ 1 ] ], maxFlow := 1,