Skip to content

Commit

Permalink
Fix some typos found by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and james-d-mitchell committed Dec 9, 2022
1 parent 2c04696 commit 0f35ebc
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ This is a minor release that fixes several bugs:
This is a minor release of the Digraphs package. The main change in this
release is the reintroduction of the three-argument version of
`DigraphAddVertices`, which accepts a digraph, a number of vertices to add, and
a list of labels for the new vertices. The removal inadvertantly broke
backwards compatbility with some third-party pre-existing code that relied on
a list of labels for the new vertices. The removal inadvertently broke
backwards compatibility with some third-party pre-existing code that relied on
this functionality in the Digraphs package (see
[Issue #264](https://github.com/digraphs/Digraphs/issues/264)).

Expand Down
6 changes: 3 additions & 3 deletions doc/constructors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ gap> LineDigraph(ChainDigraph(3));
<Description>
Given a symmetric digraph <A>digraph</A>, the operation returns the
symmetric digraph obtained by associating a vertex with each edge of
<A>digraph</A>, ignoring directions and multiplicites, and adding an edge
<A>digraph</A>, ignoring directions and multiplicities, and adding an edge
between two vertices if and only if the corresponding edges have a vertex in
common.<P/>

Expand All @@ -67,7 +67,7 @@ gap> LineUndirectedDigraph(DigraphSymmetricClosure(ChainDigraph(3)));
the double digraph is the original vertex set together with a duplicate. The
edges are <C>[u_1, v_2]</C> and <C>[u_2, v_1]</C> if and only if <C>[u,
v]</C> is an edge in <A>digraph</A>. The resulting graph is bipartite,
since the orignal edges are not included in the resulting digraph.<P/>
since the original edges are not included in the resulting digraph.<P/>

If <A>digraph</A> is mutable, then <A>digraph</A> is modified in-place. If
<A>digraph</A> is immutable, then a new immutable digraph constructed as
Expand All @@ -89,7 +89,7 @@ gap> BipartiteDoubleDigraph(gamma);
<Description>
Let <A>digraph</A> be a digraph with vertex set <C>V</C>. This function
returns the double digraph of <A>digraph</A>. The vertex set of the double
digraph is the orginal vertex set together with a duplicate. The edges are
digraph is the original vertex set together with a duplicate. The edges are
<C>[u_1, v_2]</C> and <C>[u_2, v_1]</C> if and only if <C>[u, v]</C> is an
edge in <A>digraph</A>, together with the original edges and their
duplicates.<P/>
Expand Down
2 changes: 1 addition & 1 deletion doc/display.xml
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ gap> FileString("dot/preset.dot", DotProrderDigraph(gr));
<Oper Name="DotHighlightedDigraph" Arg="digraph, verts [, colour1, colour2]"/>
<Returns>A string.</Returns>
<Description>
<C>DotHighlightedDigraph</C> produces a graphical represenation of the
<C>DotHighlightedDigraph</C> produces a graphical representation of the
digraph <A>digraph</A>, where the vertices in the list <A>verts</A>, and
edges between them, are drawn with colour <A>colour1</A> and all other
vertices and edges in <A>digraph</A> are drawn with colour <A>colour2</A>.
Expand Down
8 changes: 4 additions & 4 deletions doc/isomorph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<ManSection>
<Attr Name="BlissAutomorphismGroup" Arg="digraph" Label="for a digraph"/>
<Oper Name="BlissAutomorphismGroup" Arg="digraph, vertex_colours"
Label="for a digraph and homogenous list"/>
Label="for a digraph and homogeneous list"/>
<Oper Name="BlissAutomorphismGroup" Arg="digraph, vertex_colours, edge_colours"
Label="for a digraph, homogenous list, and list"/>
Label="for a digraph, homogeneous list, and list"/>
<Returns>A permutation group.</Returns>
<Description>
If <A>digraph</A> is a digraph, then this attribute contains the group of
Expand Down Expand Up @@ -210,7 +210,7 @@ true]]></Example>
and Petteri Kaski. If &NautyTracesInterface; is available, then &nauty; by
Brendan Mckay and Adolfo Piperno can be used instead; see
<Ref Attr="BlissAutomorphismGroup"
Label="for a digraph and homogenous list"/>,
Label="for a digraph and homogeneous list"/>,
<Ref Attr="NautyAutomorphismGroup"/>, <Ref Func="DigraphsUseBliss"/>,
and <Ref Func="DigraphsUseNauty"/>.

Expand Down Expand Up @@ -298,7 +298,7 @@ true]]></Example>
and Petteri Kaski. If &NautyTracesInterface; is available, then &nauty; by
Brendan Mckay and Adolfo Piperno can be used instead; see
<Ref Attr="BlissAutomorphismGroup"
Label="for a digraph, homogenous list, and list"/>,
Label="for a digraph, homogeneous list, and list"/>,
<Ref Attr="NautyAutomorphismGroup"/>, <Ref Func="DigraphsUseBliss"/>, and
<Ref Func="DigraphsUseNauty"/>.

Expand Down
6 changes: 3 additions & 3 deletions doc/oper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ gap> InDegreeOfVertex(D, 4);
<ManSection>
<Oper Name="InNeighboursOfVertex" Arg="digraph, vertex"/>
<Oper Name="InNeighborsOfVertex" Arg="digraph, vertex"/>
<Returns>A list of postitive vertices.</Returns>
<Returns>A list of positive vertices.</Returns>
<Description>

This operation returns the list <C>inn</C> of vertices of the digraph
Expand Down Expand Up @@ -991,7 +991,7 @@ false
<A>func</A>, <A>nopath</A>, and <A>edge</A>.
The arguments <A>nopath</A> and <A>edge</A> can be arbitrary &GAP; objects.
The argument <A>func</A> must be a function which accepts 4 arguments:
the matrix <C>mat</C>, followed by 3 postive integers. The function
the matrix <C>mat</C>, followed by 3 positive integers. The function
<A>func</A> is where the work to calculate the desired outcome must be
performed. <P/>

Expand Down Expand Up @@ -1577,7 +1577,7 @@ gap> DigraphRandomWalk(D, 1, 4);
to the vertex <A>v</A>.
<P/>

See <Ref Oper="DigraphPath"/> for more information about the repesentation
See <Ref Oper="DigraphPath"/> for more information about the representation
of a directed path or directed cycle which is used, and see <Ref
Sect="Iterators" BookName="ref"/> for more information about iterators.
See Section <Ref Subsect="Definitions" Style="Text"/> for the definition of
Expand Down
6 changes: 3 additions & 3 deletions doc/prop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ false]]></Example>
<Prop Name="IsQuasiorderDigraph" Arg="digraph"/>
<Returns><K>true</K> or <K>false</K>.</Returns>
<Description>
A digraph is a preorder digraph if and only if the digraph satisifies both
A digraph is a preorder digraph if and only if the digraph satisfies both
<Ref Prop="IsReflexiveDigraph"/> and <Ref Prop="IsTransitiveDigraph"/>.
A preorder digraph (or quasiorder digraph) <A>digraph</A> corresponds to
the preorder relation <M>\leq</M> defined by <M>x \leq y</M> if and only
Expand Down Expand Up @@ -1377,7 +1377,7 @@ false
<Prop Name="IsPartialOrderDigraph" Arg="digraph"/>
<Returns><K>true</K> or <K>false</K>.</Returns>
<Description>
A digraph is a partial order digraph if and only if the digraph satisifies
A digraph is a partial order digraph if and only if the digraph satisfies
all of <Ref Prop="IsReflexiveDigraph"/>,
<Ref Prop="IsAntisymmetricDigraph"/> and <Ref Prop="IsTransitiveDigraph"/>.
A partial order <A>digraph</A> corresponds
Expand Down Expand Up @@ -1410,7 +1410,7 @@ true
<Prop Name="IsEquivalenceDigraph" Arg="digraph"/>
<Returns><K>true</K> or <K>false</K>.</Returns>
<Description>
A digraph is an equivalence digraph if and only if the digraph satisifies
A digraph is an equivalence digraph if and only if the digraph satisfies
all of <Ref Prop="IsReflexiveDigraph"/>,
<Ref Prop="IsSymmetricDigraph"/> and <Ref Prop="IsTransitiveDigraph"/>.
A partial order <A>digraph</A> corresponds to an equivalence relation.
Expand Down
4 changes: 2 additions & 2 deletions doc/z-chap9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Item>
<E> Graph6 </E> is a graph data format for storing undirected graphs
with no multiple edges nor loops of size up to <M> 2^{36} - 1 </M> in
printable chracters. The format consists of two parts. The first part
printable characters. The format consists of two parts. The first part
uses one to eight bytes to store the number of vertices. And the second
part is the upper half of the adjacency matrix converted into ASCII
characters. For a more detail description see <URL Text='Graph6'>
Expand Down Expand Up @@ -52,7 +52,7 @@
designed for digraphs. In this format the list of edges is
partitioned into inceasing and decreasing edges, depending whether the
edge has its source bigger than the range. Then both sets of edges are
written separetly in <E> Sparse6 </E> format with a separation symbol
written separately in <E> Sparse6 </E> format with a separation symbol
in between.
</Item>
</List>
Expand Down
4 changes: 2 additions & 2 deletions gap/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function(D)
od;
return index;
end;
# Iterate over vetex subsets
# Iterate over vertex subsets
subset_iter := IteratorOfCombinations(vertices);
# Skip the first one, which should be the empty set
S := NextIterator(subset_iter);
Expand Down Expand Up @@ -345,7 +345,7 @@ function(D)
# Undo the changes made.
UniteBlist(vertex_blist, I);
od;
# Iterate over vetex subset blists.
# Iterate over vertex subset blists.
subset_iter := ListWithIdenticalEntries(n, [true, false]);
subset_iter := IteratorOfCartesianProduct2(subset_iter);
# Skip the first one, which should be the empty set
Expand Down
2 changes: 1 addition & 1 deletion gap/digraph.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ function(filt, D)
red := DigraphReflexiveTransitiveReduction(D);
top := DigraphTopologicalSort(D);
# im[i] will store the image of the idempotent partial perm corresponding to
# vertex i of the arugment <D>
# vertex i of the argument <D>
im := [];
im[top[1]] := [];
max := 1;
Expand Down
2 changes: 1 addition & 1 deletion gap/grahom.gi
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function(arg)
colours := fail;
G := AutomorphismGroup(DigraphRemoveAllMultipleEdges(D));
else
ErrorNoReturn("the 2nd argument must be a homogenous list,");
ErrorNoReturn("the 2nd argument must be a homogeneous list,");
fi;
else
if HasGeneratorsOfEndomorphismMonoidAttr(D) then
Expand Down
2 changes: 1 addition & 1 deletion gap/io.gi
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function(arg)
fi;

if not (IsString(name) or IsFile(name)) then
ErrorNoReturn("the 1st argument <filenname> must be a string or IO ",
ErrorNoReturn("the 1st argument <filename> must be a string or IO ",
"file object,");
elif not (IsFunction(decoder) or decoder = fail) then
ErrorNoReturn("the argument <decoder> must be a function or fail,");
Expand Down
4 changes: 2 additions & 2 deletions gap/prop.gi
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,12 @@ end);
# A vertex z dominates a pair of vertices {x, y} if z->x and z->y
# A pair of vertices {x, y} dominates a vertex z if x->z and y->z
# Theorem 4.1: a strongly connected digraph with n vertices in which every pair
# of non-adjacent dominated vertices {x,y} satifies either of:
# of non-adjacent dominated vertices {x,y} satisfies either of:
# 1.(full degree of x) ≥ n and (full degree of y) ≥ n - 1
# 2.(full degree of y) ≥ n and (full degree of x) ≥ n - 1
# Is Hamiltonian.
# Theorem 4.2: a strongly connected digraph with n vertices in which every pair
# of non-adjacent vertices {x,y} which is dominated or dominating satifies:
# of non-adjacent vertices {x,y} which is dominated or dominating satisfies:
# 1. (out degree of x) + (in degree of y) ≥ n
# 2. (out degree of y) + (in degree of x) ≥ n
# Is Hamiltonian.
Expand Down
10 changes: 5 additions & 5 deletions src/cliques.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static UInt
clique_hook_gap_list(void* user_param, Obj clique_list, Obj gap_func) {
Obj n = CALL_2ARGS(gap_func, user_param, clique_list);
if (!IS_INTOBJ(n)) {
ErrorQuit("the 2rd argument <hook> must be a function which returns "
ErrorQuit("the 2nd argument <hook> must be a function which returns "
"an integer,",
0L,
0L);
Expand Down Expand Up @@ -427,7 +427,7 @@ static int BronKerbosch(uint16_t depth,
// The arguments are as follows:
//
// 1. digraphs_obj the digraph to search for cliques in
// 2. hook_obj a funtion to apply to every clique found, or Fail if no
// 2. hook_obj a function to apply to every clique found, or Fail if no
// such function is needed
// 3. user_param_obj GAP variable that can be used in the hook_obj, must be a
// plist if hook_obj is Fail
Expand All @@ -444,7 +444,7 @@ static int BronKerbosch(uint16_t depth,
// 7. max_obj True if only maximal cliques need to be found and False
// otherwise
// 8. size_obj an integer specifying the size of cliques to be found
// 9. aut_grp_obj an optional argument that can specifiy the automorphisms
// 9. aut_grp_obj an optional argument that can specify the automorphisms
// of the graph that will be used in the recursive search.
// If not given, the full automorphism group will be used.
//
Expand Down Expand Up @@ -485,14 +485,14 @@ Obj FuncDigraphsCliquesFinder(Obj self, Obj args) {
}
if (hook_obj == Fail) {
if (!IS_LIST(user_param_obj) || !IS_MUTABLE_OBJ(user_param_obj)) {
ErrorQuit("the 2rd argument <hook> is fail and so the 3th argument must "
ErrorQuit("the 2nd argument <hook> is fail and so the 3th argument must "
"be a mutable list, not %s,",
(Int) TNAM_OBJ(user_param_obj),
0L);
}
} else if (!IS_FUNC(hook_obj) || NARG_FUNC(hook_obj) != 2) {
ErrorQuit(
"the 2rd argument <hook> must be a function with 2 arguments,", 0L, 0L);
"the 2nd argument <hook> must be a function with 2 arguments,", 0L, 0L);
}
if (!IS_INTOBJ(limit_obj) && limit_obj != Infinity) {
ErrorQuit("the 4th argument <limit> must be an integer "
Expand Down
2 changes: 1 addition & 1 deletion src/digraphs.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ static Obj FuncDIGRAPH_TRANS_REDUCTION(Obj self, Obj D) {
return D;
}

// Create the GAP out-neighbours strcture of the result
// Create the GAP out-neighbours structure of the result
Obj ot_list = NEW_PLIST(T_PLIST_TAB, n);
SET_LEN_PLIST(ot_list, n);
for (UInt i = 1; i <= n; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/homos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ static bool init_data_from_args(Obj digraph1_obj,
// of the function. It seems in many cases to be a good
// idea for this to be the DigraphWelshPowellOrder, i.e.
// vertices ordered from highest to lowest degree.
// 13. aut_grp_obj an optional argument that can specifiy the
// 13. aut_grp_obj an optional argument that can specify the
// automorphisms of the graph that will be used in the
// recursive search. If not given, the full automorphism
// group will be used.
Expand Down
4 changes: 2 additions & 2 deletions tst/standard/cliques.tst
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ Error, the 1st argument <digraph> must be a digraph, not integer,
gap> DigraphsCliquesFinder(NullDigraph(513), 2, 3, 4, 5, 6, 7, 8);
Error, the 1st argument <digraph> must have at most 512 vertices, found 513,
gap> DigraphsCliquesFinder(NullDigraph(1), fail, 3, 4, 5, 6, 7, 8);
Error, the 2rd argument <hook> is fail and so the 3th argument must be a mutab\
Error, the 2nd argument <hook> is fail and so the 3th argument must be a mutab\
le list, not integer,
gap> f := function(n) end;;
gap> DigraphsCliquesFinder(NullDigraph(1), f, [], 4, 5, 6, 7, 8);
Error, the 2rd argument <hook> must be a function with 2 arguments,
Error, the 2nd argument <hook> must be a function with 2 arguments,
gap> DigraphsCliquesFinder(NullDigraph(1), fail, [], fail, 5, 6, 7, 8);
Error, the 4th argument <limit> must be an integer or infinity, not boolean or\
fail,
Expand Down
4 changes: 2 additions & 2 deletions tst/standard/grahom.tst
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ gap> GeneratorsOfEndomorphismMonoid(gr);
gap> gr := EmptyDigraph(2);
<immutable empty digraph with 2 vertices>
gap> GeneratorsOfEndomorphismMonoid(gr, Group(()), Group((1, 2)));
Error, the 2nd argument must be a homogenous list,
Error, the 2nd argument must be a homogeneous list,
gap> gr := EmptyDigraph(2);;
gap> GeneratorsOfEndomorphismMonoid(gr, Group(()));
Error, the 2nd argument must be a homogenous list,
Error, the 2nd argument must be a homogeneous list,
gap> gr := EmptyDigraph(2);;
gap> GeneratorsOfEndomorphismMonoid(gr, 1);
[ Transformation( [ 2, 1 ] ) ]
Expand Down
2 changes: 1 addition & 1 deletion tst/standard/io.tst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ false
gap> list[10] = gr;
true
gap> ReadDigraphs(34, DigraphFromGraph6String, 5);
Error, the 1st argument <filenname> must be a string or IO file object,
Error, the 1st argument <filename> must be a string or IO file object,
gap> ReadDigraphs(str, (1, 6, 5), 5);
Error, the argument <decoder> must be a function or fail,
gap> ReadDigraphs(str, DigraphFromGraph6String, 0);
Expand Down
2 changes: 1 addition & 1 deletion tst/standard/isomorph.tst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ gap> not DIGRAPHS_NautyAvailable or
true

# Complete bipartitite graph with parts of size m and n
# shoud have automorphism group S_m x S_n
# should have automorphism group S_m x S_n
gap> m := 5;; n := 4;;
gap> gr := CompleteBipartiteDigraph(m, n);
<immutable complete bipartite digraph with bicomponent sizes 5 and 4>
Expand Down

0 comments on commit 0f35ebc

Please sign in to comment.