Skip to content

Commit

Permalink
weights.xml: Adjust formatting in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorpey committed Feb 8, 2024
1 parent 283e044 commit 4607217
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/weights.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ gap> EdgeWeights(g);

See <Ref Attr="EdgeWeights" Func="EdgeWeightedDigraph"/>.
<Example><![CDATA[
gap> g := EdgeWeightedDigraph([[2], [1], [1, 2]], [[12], [5], [6, 9]]);
gap> g := EdgeWeightedDigraph([[2], [1], [1, 2]],
> [[12], [5], [6, 9]]);
<immutable digraph with 3 vertices, 4 edges>
gap> DigraphEdgeWeightedMinimumSpanningTree(g);
rec( mst := <immutable digraph with 3 vertices, 2 edges>, total := 11
Expand Down Expand Up @@ -115,12 +116,14 @@ rec( mst := <immutable digraph with 3 vertices, 2 edges>, total := 11

See <Ref Attr="EdgeWeights" Func="EdgeWeightedDigraph"/>.
<Example><![CDATA[
gap> g := EdgeWeightedDigraph([[2, 3], [4], [4], []], [[5, 1], [6], [11], []]);
gap> g := EdgeWeightedDigraph([[2, 3], [4], [4], []],
> [[5, 1], [6], [11], []]);
<immutable digraph with 4 vertices, 4 edges>
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]]);
<immutable digraph with 3 vertices, 3 edges>
gap> DigraphEdgeWeightedShortestPath(ncg, 1);
Error, negative cycle exists,
Expand Down Expand Up @@ -169,7 +172,8 @@ rec( distances := [ [ 0, 1, 3 ], [ 5, 0, 2 ], [ 3, 4, 0 ] ],

See <Ref Attr="EdgeWeights" Func="EdgeWeightedDigraph"/>.
<Example><![CDATA[
gap> g := EdgeWeightedDigraph([[2, 2], [3], []], [[3, 2], [1], []]);
gap> g := EdgeWeightedDigraph([[2, 2], [3], []],
> [[3, 2], [1], []]);
<immutable multidigraph with 3 vertices, 3 edges>
gap> DigraphMaximumFlow(g, 1, 3);
rec( flows := [ [ ], [ 1, 0 ], [ 1 ] ], maxFlow := 1,
Expand Down

0 comments on commit 4607217

Please sign in to comment.