Skip to content

Commit eadde5f

Browse files
committed
chore: updated C docs
1 parent 652c753 commit eadde5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5536
-3476
lines changed

c/html/develop/igraph-Advanced.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
<p>
423423

424424

425-
This is the more flexible version of <a class="link" href="igraph-Advanced.html#IGRAPH_PROGRESSF" title="2.3.2. IGRAPH_PROGRESSF — Report the progress of a calculation from an igraph function, printf-like (macro variant)."><code class="function">IGRAPH_PROGRESSF()</code></a>,
425+
This is the more flexible version of <a class="link" href="igraph-Advanced.html#IGRAPH_PROGRESS" title="2.3.1. IGRAPH_PROGRESS — Report the progress of a calculation from an igraph function (macro variant)."><code class="function">IGRAPH_PROGRESS()</code></a>,
426426
having a printf-like syntax. As this macro takes variable
427427
number of arguments, they must be all supplied as a single
428428
argument, enclosed in parentheses. <a class="link" href="igraph-Advanced.html#igraph_progressf" title="2.3.4. igraph_progressf — Report the progress of a calculation from an igraph function, printf-like."><code class="function">igraph_progressf()</code></a> is then

c/html/develop/igraph-Arpack.html

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,34 @@
9090
<tr>
9191
<td><p><span class="term"><em class="parameter"><code>res</code></em>:</span></p></td>
9292
<td><p>
93-
Pointer to a real, the result will be stored here.</p></td>
93+
Pointer to a real, the result will be stored here.
94+
</p></td>
9495
</tr>
9596
</tbody>
9697
</table></div>
9798
<p>
98-
99+
</p>
100+
<p><b>Returns: </b></p>
101+
<div class="variablelist"><table border="0" class="variablelist">
102+
<colgroup>
103+
<col align="left" valign="top">
104+
<col>
105+
</colgroup>
106+
<tbody><tr>
107+
<td><p><span class="term"><em class="parameter"><code></code></em></span></p></td>
108+
<td><p>
109+
Error code.
110+
</p></td>
111+
</tr></tbody>
112+
</table></div>
113+
<p>
99114

100115
Time complexity: O(n) where n is the length of the vectors.
101116

102117
</p>
103118
<div class="hideshow" onClick="toggle(this, event)">
104119
<div class="example">
105-
<a name="id-1.30.2.3.6.1"></a><p class="title"><b>Example 29.1.  File <code class="code">examples/simple/blas.c</code></b></p>
120+
<a name="id-1.30.2.3.8.1"></a><p class="title"><b>Example 29.1.  File <code class="code">examples/simple/blas.c</code></b></p>
106121
<div class="example-contents">
107122
<pre class="programlisting"><span class="strong"><strong>#include</strong></span> &lt;igraph.h&gt;
108123

@@ -1074,7 +1089,7 @@
10741089

10751090

10761091
Calls the DSYEVR LAPACK function to compute selected eigenvalues
1077-
and, optionally, eigenvectors of a real symmetric matrix A.
1092+
and, optionally, eigenvectors of a real symmetric matrix <code class="constant">A</code>.
10781093
Eigenvalues and eigenvectors can be selected by specifying either
10791094
a range of values or a range of indices for the desired eigenvalues.
10801095

@@ -1106,7 +1121,7 @@
11061121
the corresponding eigenvectors) to calculate. Possible
11071122
values are <code class="constant">IGRAPH_LAPACK_DSYEV_ALL</code>, all eigenvalues;
11081123
<code class="constant">IGRAPH_LAPACK_DSYEV_INTERVAL</code>, all eigenvalues in the
1109-
half-open interval (vl,vu];
1124+
half-open interval <code class="literal">(vl, vu]</code>;
11101125
<code class="constant">IGRAPH_LAPACK_DSYEV_SELECT</code>, the il-th through iu-th
11111126
eigenvalues.
11121127
</p></td>
@@ -1131,7 +1146,7 @@
11311146
<td><p><span class="term"><em class="parameter"><code>vestimate</code></em>:</span></p></td>
11321147
<td><p>
11331148
An upper bound for the number of eigenvalues in
1134-
the (vl,vu] interval, if <em class="parameter"><code>which</code></em> is <code class="constant">IGRAPH_LAPACK_DSYEV_INTERVAL</code>. Memory is allocated only for
1149+
the <code class="literal">(vl, vu]</code> interval, if <em class="parameter"><code>which</code></em> is <code class="constant">IGRAPH_LAPACK_DSYEV_INTERVAL</code>. Memory is allocated only for
11351150
the given number of eigenvalues (and eigenvectors), so this
11361151
upper bound must be correct.
11371152
</p></td>
@@ -1153,9 +1168,9 @@
11531168
<td><p>
11541169
The absolute error tolerance for the eigevalues. An
11551170
approximate eigenvalue is accepted as converged when it is
1156-
determined to lie in an interval [a,b] of width less than or
1157-
equal to abstol + EPS * max(|a|,|b|), where EPS is the
1158-
machine precision.
1171+
determined to lie in an interval <code class="literal">[a,b]</code> of width
1172+
less than or equal to <code class="literal">abstol + EPS * max(|a|,|b|)</code>,
1173+
where <code class="constant">EPS</code> is the machine precision.
11591174
</p></td>
11601175
</tr>
11611176
<tr>
@@ -1169,8 +1184,8 @@
11691184
<tr>
11701185
<td><p><span class="term"><em class="parameter"><code>vectors</code></em>:</span></p></td>
11711186
<td><p>
1172-
An initialized matrix, the eigenvectors are stored
1173-
in its columns, unless it is a null pointer. It will be
1187+
An initialized matrix. A set of orthonormal eigenvectors
1188+
are stored in its columns, unless it is a null pointer. It will be
11741189
resized as needed.
11751190
</p></td>
11761191
</tr>

c/html/develop/igraph-Attributes.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
<td><p>
233233
Called when new edges are added to a graph, after the
234234
base data structure was modified. A vector containing the endpoints of the
235-
new edges are supplied as an argument. The function is supposd to set up
235+
new edges are supplied as an argument. The function is supposed to set up
236236
default values for each edge attribute that is currently registered on the
237237
graph, for all the newly added edges. Expected to return an error code.
238238
</p></td>
@@ -245,7 +245,7 @@
245245
attributes of some edges from the old graph (this also includes the
246246
deletion of edges). The supplied index vector defines which old edge a new
247247
edge corresponds to. Its length is the same as the number of edges in the
248-
new graph, and for each edge it provides the ID of the correspnding edge
248+
new graph, and for each edge it provides the ID of the corresponding edge
249249
in the old graph. The function is supposed to set up the values of the
250250
edge attributes of the new graph based on the attributes of the old graph
251251
and the provided index vector. Note that the old and the new graph <span class="emphasis"><em>may</em></span>
@@ -1253,7 +1253,7 @@
12531253
a single one. Attribute combination lists are used to indicate to the attribute
12541254
handler how to combine the attributes of the original vertices or edges and
12551255
how to derive the final attribute value that is to be assigned to the collapsed
1256-
vertex or edge. For example, <a class="link" href="igraph-Operators.html#igraph_simplify" title="3.9. igraph_simplify — Removes loop and/or multiple edges from the graph."><code class="function">igraph_simplify()</code></a> removes loops and combines
1256+
vertex or edge. For example, <a class="link" href="igraph-Operators.html#igraph_simplify" title="3.10. igraph_simplify — Removes loop and/or multiple edges from the graph."><code class="function">igraph_simplify()</code></a> removes loops and combines
12571257
multiple edges into a single one; in case of a graph with an edge attribute
12581258
named <code class="constant">weight</code> the attribute combination list can tell the attribute handler
12591259
whether the weight of a collapsed edge should be the sum, the mean or some other
@@ -1722,7 +1722,7 @@
17221722
"type", IGRAPH_ATTRIBUTE_COMBINE_FIRST,
17231723
"", IGRAPH_ATTRIBUTE_COMBINE_IGNORE,
17241724
IGRAPH_NO_MORE_ATTRIBUTES);
1725-
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.9. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(&amp;graph, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, &amp;comb);
1725+
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.10. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(&amp;graph, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, &amp;comb);
17261726
<span class="strong"><strong><a class="link" href="igraph-Foreign.html#igraph_write_graph_graphml" title="3.2. igraph_write_graph_graphml — Writes the graph to a file in GraphML format.">igraph_write_graph_graphml</a></strong></span>(&amp;graph, stdout, <span class="emphasis"><em>/*prefixattr=*/</em></span> true);
17271727

17281728
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_destroy" title="4.1.4. igraph_destroy — Frees the memory allocated for a graph object.">igraph_destroy</a></strong></span>(&amp;graph);
@@ -1920,7 +1920,7 @@
19201920
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#igraph_set_attribute_table" title="1.2. igraph_set_attribute_table — Attach an attribute table.">igraph_set_attribute_table</a></strong></span>(&amp;igraph_cattribute_table);
19211921

19221922
<span class="emphasis"><em>/* Create a graph, add some attributes and save it as a GraphML file. */</em></span>
1923-
<span class="strong"><strong><a class="link" href="igraph-Generators.html#igraph_famous" title="1.25. igraph_famous — Create a famous graph by simply providing its name.">igraph_famous</a></strong></span>(&amp;g, "Petersen");
1923+
<span class="strong"><strong><a class="link" href="igraph-Generators.html#igraph_famous" title="1.27. igraph_famous — Create a famous graph by simply providing its name.">igraph_famous</a></strong></span>(&amp;g, "Petersen");
19241924
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#SETGAS" title="4.2.6. SETGAS — Set a string graph attribute">SETGAS</a></strong></span>(&amp;g, "name", "Petersen's graph");
19251925
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#SETGAN" title="4.2.2. SETGAN — Set a numeric graph attribute">SETGAN</a></strong></span>(&amp;g, "vertices", <span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_vcount" title="4.2.1. igraph_vcount — The number of vertices in a graph.">igraph_vcount</a></strong></span>(&amp;g));
19261926
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#SETGAN" title="4.2.2. SETGAN — Set a numeric graph attribute">SETGAN</a></strong></span>(&amp;g, "edges", <span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_ecount" title="4.2.2. igraph_ecount — The number of edges in a graph.">igraph_ecount</a></strong></span>(&amp;g));
@@ -1976,7 +1976,7 @@
19761976
}
19771977

19781978
<span class="strong"><strong>static</strong></span> void <span class="strong"><strong>simplify_write_destroy</strong></span>(igraph_t *g, igraph_attribute_combination_t *comb) {
1979-
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.9. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(g, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, comb);
1979+
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.10. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(g, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, comb);
19801980
<span class="strong"><strong><a class="link" href="igraph-Foreign.html#igraph_write_graph_graphml" title="3.2. igraph_write_graph_graphml — Writes the graph to a file in GraphML format.">igraph_write_graph_graphml</a></strong></span>(g, stdout, <span class="emphasis"><em>/*prefixattr=*/</em></span> true);
19811981
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#igraph_attribute_combination_destroy" title="3.4. igraph_attribute_combination_destroy — Destroy attribute combination list.">igraph_attribute_combination_destroy</a></strong></span>(comb);
19821982
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_destroy" title="4.1.4. igraph_destroy — Frees the memory allocated for a graph object.">igraph_destroy</a></strong></span>(g);
@@ -2055,7 +2055,7 @@
20552055
<pre class="programlisting"><span class="strong"><strong>#include</strong></span> &lt;igraph.h&gt;
20562056

20572057
<span class="strong"><strong>static</strong></span> void <span class="strong"><strong>simplify_write_destroy</strong></span>(igraph_t *g, igraph_attribute_combination_t *comb) {
2058-
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.9. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(g, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, comb);
2058+
<span class="strong"><strong><a class="link" href="igraph-Operators.html#igraph_simplify" title="3.10. igraph_simplify — Removes loop and/or multiple edges from the graph.">igraph_simplify</a></strong></span>(g, <span class="emphasis"><em>/*remove_multiple=*/</em></span> true, <span class="emphasis"><em>/*remove_loops=*/</em></span> true, comb);
20592059
<span class="strong"><strong><a class="link" href="igraph-Foreign.html#igraph_write_graph_graphml" title="3.2. igraph_write_graph_graphml — Writes the graph to a file in GraphML format.">igraph_write_graph_graphml</a></strong></span>(g, stdout, <span class="emphasis"><em>/*prefixattr=*/</em></span> true);
20602060
<span class="strong"><strong><a class="link" href="igraph-Attributes.html#igraph_attribute_combination_destroy" title="3.4. igraph_attribute_combination_destroy — Destroy attribute combination list.">igraph_attribute_combination_destroy</a></strong></span>(comb);
20612061
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_destroy" title="4.1.4. igraph_destroy — Frees the memory allocated for a graph object.">igraph_destroy</a></strong></span>(g);
@@ -4307,7 +4307,7 @@
43074307
</p></td>
43084308
</tr>
43094309
<tr>
4310-
<td><p><span class="term"><em class="parameter"><code>vids</code></em>:</span></p></td>
4310+
<td><p><span class="term"><em class="parameter"><code>eids</code></em>:</span></p></td>
43114311
<td><p>
43124312
The edges to query.
43134313
</p></td>

c/html/develop/igraph-Basic.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
will check their input and issue an error if it is not valid. Those
100100
rare functions which do not perform this check clearly indicate this
101101
in their documentation. To eliminate multiple edges from a graph, you can use
102-
<a class="link" href="igraph-Operators.html#igraph_simplify" title="3.9. igraph_simplify — Removes loop and/or multiple edges from the graph.">
102+
<a class="link" href="igraph-Operators.html#igraph_simplify" title="3.10. igraph_simplify — Removes loop and/or multiple edges from the graph.">
103103
<code class="function">igraph_simplify()</code></a>.
104104
</p>
105105
</div>
@@ -1617,7 +1617,7 @@
16171617
IGRAPH_UNDIRECTED, <span class="emphasis"><em>/*unconn=*/</em></span> true);
16181618
<span class="strong"><strong>igraph_vector_int_update</strong></span>(&amp;pairs, &amp;path);
16191619
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_expand_path_to_pairs" title='5.3. igraph_expand_path_to_pairs — Helper function to convert a sequence of vertex IDs describing a path into a "pairs" vector.'>igraph_expand_path_to_pairs</a></strong></span>(&amp;pairs);
1620-
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_get_eids" title="4.2.10. igraph_get_eids — Return edge IDs based on the adjacent vertices.">igraph_get_eids</a></strong></span>(&amp;g, &amp;eids, &amp;pairs, 0, <span class="emphasis"><em>/*error=*/</em></span> true);
1620+
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_get_eids" title="4.2.10. igraph_get_eids — Return edge IDs based on the adjacent vertices.">igraph_get_eids</a></strong></span>(&amp;g, &amp;eids, &amp;pairs, <span class="emphasis"><em>/* directed= */</em></span> false, <span class="emphasis"><em>/*error=*/</em></span> true);
16211621
<span class="strong"><strong>for</strong></span> (e = 0; e &lt; <span class="strong"><strong>igraph_vector_int_size</strong></span>(&amp;path) - 1; e++) {
16221622
igraph_integer_t edge = <span class="strong"><strong><a class="link" href="igraph-Data-structures.html#VECTOR" title="2.4.1. VECTOR — Accessing an element of a vector.">VECTOR</a></strong></span>(eids)[e];
16231623
igraph_integer_t from1 = <span class="strong"><strong><a class="link" href="igraph-Data-structures.html#VECTOR" title="2.4.1. VECTOR — Accessing an element of a vector.">VECTOR</a></strong></span>(path)[e];
@@ -2215,7 +2215,7 @@
22152215
}
22162216
<span class="strong"><strong><a class="link" href="igraph-Basic.html#igraph_destroy" title="4.1.4. igraph_destroy — Frees the memory allocated for a graph object.">igraph_destroy</a></strong></span>(&amp;g);
22172217

2218-
<span class="strong"><strong><a class="link" href="igraph-Generators.html#igraph_full" title="1.19. igraph_full — Creates a full graph (complete graph).">igraph_full</a></strong></span>(&amp;g, 10, IGRAPH_UNDIRECTED, IGRAPH_NO_LOOPS);
2218+
<span class="strong"><strong><a class="link" href="igraph-Generators.html#igraph_full" title="1.21. igraph_full — Creates a full graph (complete graph).">igraph_full</a></strong></span>(&amp;g, 10, IGRAPH_UNDIRECTED, IGRAPH_NO_LOOPS);
22192219
<span class="strong"><strong><a class="link" href="igraph-Structural.html#igraph_maxdegree" title="10.10. igraph_maxdegree — The maximum degree in a graph (or set of vertices).">igraph_maxdegree</a></strong></span>(&amp;g, &amp;mdeg, <span class="strong"><strong><a class="link" href="igraph-Iterators.html#igraph_vss_all" title="4.1. igraph_vss_all — All vertices of a graph (immediate version).">igraph_vss_all</a></strong></span>(), IGRAPH_ALL, IGRAPH_LOOPS);
22202220
<span class="strong"><strong>if</strong></span> (mdeg != 9) {
22212221
<span class="strong"><strong>exit</strong></span>(7);
@@ -2410,7 +2410,7 @@
24102410
</colgroup>
24112411
<tbody>
24122412
<tr>
2413-
<td><p><span class="term"><em class="parameter"><code>igraph</code></em>:</span></p></td>
2413+
<td><p><span class="term"><em class="parameter"><code>graph</code></em>:</span></p></td>
24142414
<td><p>
24152415
The graph.
24162416
</p></td>

c/html/develop/igraph-Bipartite.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@
299299
<tbody><tr>
300300
<td><p><span class="term"><em class="parameter"><code></code></em></span></p></td>
301301
<td><p>
302-
<a class="link" href="igraph-Generators.html#igraph_full" title="1.19. igraph_full — Creates a full graph (complete graph)."><code class="function">igraph_full()</code></a> for non-bipartite complete graphs,
303-
<a class="link" href="igraph-Generators.html#igraph_full_multipartite" title="1.21. igraph_full_multipartite — Creates a full multipartite graph."><code class="function">igraph_full_multipartite()</code></a> for complete multipartite graphs.
302+
<a class="link" href="igraph-Generators.html#igraph_full" title="1.21. igraph_full — Creates a full graph (complete graph)."><code class="function">igraph_full()</code></a> for non-bipartite complete graphs,
303+
<a class="link" href="igraph-Generators.html#igraph_full_multipartite" title="1.23. igraph_full_multipartite — Creates a full multipartite graph."><code class="function">igraph_full_multipartite()</code></a> for complete multipartite graphs.
304304
</p></td>
305305
</tr></tbody>
306306
</table></div>

0 commit comments

Comments
 (0)