Skip to content

Commit d052dc8

Browse files
committed
Merge branch 'master' into develop
2 parents 3018b0d + 950d61a commit d052dc8

3 files changed

Lines changed: 7 additions & 14 deletions

File tree

doc/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,21 @@ def get_igraph_version():
8383
#'sphinx_panels',
8484
]
8585

86+
# Using --no-sidebar option to skip the sidebar whole together not to generate noise in the HTML.
87+
# Because the pydoctor output is integrated in a smaller div with a custom CSS it's not optimal to include the sidebar.
8688
pydoctor_args = [
8789
'--project-name="igraph"',
8890
'--project-version=' + get_igraph_version(),
8991
'--project-url=https://igraph.org/python',
9092
'--introspect-c-modules',
93+
'--no-sidebar',
9194
'--docformat=epytext',
9295
#'--intersphinx='+get_root_dir()+'/doc/tutorial/objects.inv',
9396
'--html-output=' + op.join(get_root_dir(), 'doc', 'html', 'api'),
9497
#'--html-viewsource-base=https://github.com/igraph/python-igraph/tree/default',
9598
'--project-base-dir=' + get_igraphdir(),
9699
get_igraphdir(),
97-
]
100+
]
98101

99102
# API docs relative to the rest of the docs
100103
# NOTE: there is a bug in pydoctor that requires this to be a subfolder

scripts/mkdoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Creates the API documentation for igraph's Python interface using PyDoctor
3+
# Creates the API documentation for igraph's Python interface
44
#
55
# Usage: ./mkdoc.sh (makes API and tutorial docs)
66
# ./mkdoc.sh -s (makes standalone docs that require no further processing)

src/igraph/structural.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ def _pagerank(
4545
weights=None,
4646
arpack_options=None,
4747
implementation="prpack",
48-
niter=1000,
49-
eps=0.001,
5048
):
5149
"""Calculates the PageRank values of a graph.
5250
@@ -69,16 +67,8 @@ def _pagerank(
6967
implementation in igraph 0.7
7068
- C{"arpack"}: use the ARPACK library. This implementation
7169
was used from version 0.5, until version 0.7.
72-
- C{"power"}: use a simple power method. This is the
73-
implementation that was used before igraph version 0.5.
74-
@param niter: The number of iterations to use in the power method
75-
implementation. It is ignored in the other implementations
76-
@param eps: The power method implementation will consider the
77-
calculation as complete if the difference of PageRank values between
78-
iterations change less than this value for every node. It is
79-
ignored by the other implementations.
80-
@return: a list with the Google PageRank values of the specified
81-
vertices."""
70+
@return: a list with the PageRank values of the specified vertices.
71+
"""
8272
if arpack_options is None:
8373
arpack_options = default_arpack_options
8474
return graph.personalized_pagerank(

0 commit comments

Comments
 (0)