Skip to content

Commit c113340

Browse files
committed
Minor changes made to SwapDigraphs and DigraphRemoveAllEdges doc
1 parent 605bf8c commit c113340

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc/attr.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,9 +2097,8 @@ gap> D;
20972097
<Attr Name="DigraphRemoveAllEdgesAttr" Arg="digraph"/>
20982098
<Returns>An empty digraph.</Returns>
20992099
<Description>
2100-
This operation returns a digraph constructed from <A>digraph</A>, which is mutable,
2101-
by removing all of the edges in the original digraph
2102-
(see <Ref Oper="DigraphRemoveEdge" Label="for a digraph and an edge"/>).
2100+
This operation returns a digraph constructed from <A>digraph</A>. If <A>digraph</A> is mutable,
2101+
its list of neighbours will be replaced with an empty 2D list of the same length.
21032102
<P/>
21042103

21052104
If <A>digraph</A> is immutable, then a new, empty immutable digraph with the same number of vertices is returned.
@@ -2109,7 +2108,6 @@ gap> D3 := Digraph(IsMutableDigraph, [[2], [1], [2]]);
21092108
<mutable digraph with 3 vertices, 3 edges>
21102109
gap> DigraphRemoveAllEdges(D3);
21112110
<mutable empty digraph with 3 vertices>
2112-
true
21132111
]]></Example>
21142112
</Description>
21152113
</ManSection>

gap/oper.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ function(D1, D2, edge_function)
990990
end);
991991

992992
InstallMethod(SwapDigraphs,
993-
"for a mutable digraph and mutable digraph",
993+
"for two mutable digraphs",
994994
[IsMutableDigraph, IsMutableDigraph],
995995
function(D1, D2)
996996
local nb1, nb2;

0 commit comments

Comments
 (0)