Skip to content

Commit 4f1a42a

Browse files
committed
doc: proper capitalization of Erdos-Renyi and Prufer in docstrings
1 parent 3739f7d commit 4f1a42a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/_igraph/graphobject.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3636,7 +3636,7 @@ PyObject *igraphmodule_Graph_Tree(PyTypeObject * type,
36363636
* - directed is a bool that specifies if the edges should be directed. If so, they
36373637
* point away from the root.
36383638
* - method is one of:
3639-
* - 'Prufer' aka sample Pruefer sequences and convert to trees.
3639+
* - 'prufer' aka sample Prüfer sequences and convert to trees.
36403640
* - 'lerw' aka loop-erased random walk on the complete graph to sample spanning
36413641
* trees.
36423642
*
@@ -13946,7 +13946,7 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1394613946
{"Erdos_Renyi", (PyCFunction) igraphmodule_Graph_Erdos_Renyi,
1394713947
METH_VARARGS | METH_CLASS | METH_KEYWORDS,
1394813948
"Erdos_Renyi(n, p, m, directed=False, loops=False)\n--\n\n"
13949-
"Generates a graph based on the Erdos-Renyi model.\n\n"
13949+
"Generates a graph based on the Erdős-Rényi model.\n\n"
1395013950
"@param n: the number of vertices.\n"
1395113951
"@param p: the probability of edges. If given, C{m} must be missing.\n"
1395213952
"@param m: the number of edges. If given, C{p} must be missing.\n"
@@ -14102,11 +14102,11 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1410214102
{"Prufer", (PyCFunction) igraphmodule_Graph_Prufer,
1410314103
METH_VARARGS | METH_CLASS | METH_KEYWORDS,
1410414104
"Prufer(seq)\n--\n\n"
14105-
"Generates a tree from its Prufer sequence.\n\n"
14106-
"A Prufer sequence is a unique sequence of integers associated with a\n"
14105+
"Generates a tree from its Prüfer sequence.\n\n"
14106+
"A Prüfer sequence is a unique sequence of integers associated with a\n"
1410714107
"labelled tree. A tree on M{n} vertices can be represented by a sequence\n"
1410814108
"of M{n-2} integers, each between M{0} and M{n-1} (inclusive).\n\n"
14109-
"@param seq: the Prufer sequence as an iterable of integers\n"},
14109+
"@param seq: the Prüfer sequence as an iterable of integers\n"},
1411014110

1411114111
/* interface to igraph_bipartite_game */
1411214112
{"_Random_Bipartite", (PyCFunction) igraphmodule_Graph_Random_Bipartite,
@@ -14389,7 +14389,7 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1438914389
"@param directed: whether the graph should be directed\n"
1439014390
"@param method: the generation method to be used. One of the following:\n"
1439114391
" \n"
14392-
" - C{\"prufer\"} -- samples Prufer sequences uniformly, then converts\n"
14392+
" - C{\"prufer\"} -- samples Prüfer sequences uniformly, then converts\n"
1439314393
" them to trees\n"
1439414394
" - C{\"lerw\"} -- performs a loop-erased random walk on the complete\n"
1439514395
" graph to uniformly sample its spanning trees (Wilson's algorithm).\n"
@@ -15686,8 +15686,8 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1568615686
(PyCFunction) igraphmodule_Graph_to_prufer,
1568715687
METH_NOARGS,
1568815688
"to_prufer()\n--\n\n"
15689-
"Converts a tree graph into a Prufer sequence.\n\n"
15690-
"@return: the Prufer sequence as a list"
15689+
"Converts a tree graph into a Prüfer sequence.\n\n"
15690+
"@return: the Prüfer sequence as a list"
1569115691
},
1569215692

1569315693
// interface to igraph_transitivity_undirected

0 commit comments

Comments
 (0)