Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte R
graph-tool
Commits
9fbbe293
Commit
9fbbe293
authored
Mar 23, 2020
by
Tiago Peixoto
Browse files
Update documentation
parent
af5c99b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
doc/demos/cppextensions/cppextensions.rst
View file @
9fbbe293
...
...
@@ -34,7 +34,7 @@ function template that implements the desired algorithm:
:linenos:
The second part is a compilation unit :download:`kcore.cc <kcore.cc>`
that setup
s
the Python-C++ interface:
that set
s
up the Python-C++ interface:
.. literalinclude:: kcore.cc
:language: c++
...
...
doc/demos/matplotlib/matplotlib.rst
View file @
9fbbe293
...
...
@@ -27,6 +27,8 @@ Drawing with matplotlib is done by calling
.. testsetup::
import matplotlib
backend = matplotlib.get_backend()
gt.seed_rng(44)
.. testcode::
...
...
@@ -68,12 +70,11 @@ Drawing with matplotlib is done by calling
plt.subplots_adjust(left=0.08, right=0.99, top=0.99, bottom=0.06)
fig.savefig("gt-mpl.pdf")
.. testcleanup::
plt.switch_backend(backend)
conv_png("gt-mpl.pdf")
.. figure:: gt-mpl.png
:width: 90%
...
...
doc/pyenv.py
View file @
9fbbe293
...
...
@@ -60,7 +60,7 @@ except RuntimeError:
def
conv_png
(
f
):
subprocess
.
check_output
([
'pdftocairo'
,
"-png"
,
"-singlefile"
,
"-transp"
,
"-r"
,
"
6
00"
,
f
])
"-r"
,
"
3
00"
,
f
])
prandom
.
seed
(
42
)
np
.
random
.
seed
(
42
)
...
...
src/graph_tool/inference/uncertain_blockmodel.py
View file @
9fbbe293
...
...
@@ -1236,7 +1236,7 @@ class IsingBaseBlockState(DynamicsBlockStateBase):
has_zero
=
False
,
**
kwargs
):
r
"""Base state for network reconstruction based on the Ising model, using the
stochastic block model as a prior. This class is not supposed to be
instantiated directly. Instead one of it
'
s specialized subclasses must
instantiated directly. Instead one of its specialized subclasses must
be used, which have the same signature: :class:`IsingGlauberBlockState`,
:class:`PseudoIsingBlockState`, :class:`CIsingGlauberBlockState`,
:class:`PseudoCIsingBlockState`.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment