Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
d7f9030b
Commit
d7f9030b
authored
Jan 25, 2016
by
Tiago Peixoto
Browse files
Fix some docstring tests
parent
0cb5e19d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/clustering/__init__.py
View file @
d7f9030b
...
...
@@ -347,9 +347,9 @@ def motifs(g, k, p=1.0, motif_list=None, return_maps=False):
>>> g = gt.random_graph(1000, lambda: (5,5))
>>> motifs, counts = gt.motifs(gt.GraphView(g, directed=False), 4)
>>> print(len(motifs))
52
13
>>> print(counts)
[
29259, 29111, 28420, 28618, 163659, 96696, 96821, 31366, 295, 162, 185, 257, 58, 74, 562, 300, 80, 240, 273
, 112,
379, 167, 329, 536, 605, 641, 176, 540, 340, 317, 298, 87, 306, 275, 252, 9, 3
, 1
1
, 5,
9, 7, 2, 2, 1, 3, 1, 2, 1, 2, 1, 1, 1
]
[
115408, 388542, 1031
, 11
8
2,
2662, 2138, 833, 28
, 1
6
, 5,
5, 3, 4
]
References
...
...
src/graph_tool/community/blockmodel.py
View file @
d7f9030b
...
...
@@ -2525,7 +2525,7 @@ def collect_edge_marginals(state, p=None):
... ds, nmoves = gt.mcmc_sweep(state)
... pe = gt.collect_edge_marginals(state, pe)
>>> gt.bethe_entropy(state, pe)[0]
17.6097732625099
8
...
17.6097732625099...
"""
if
p
is
None
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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