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
611ff5a6
Commit
611ff5a6
authored
Mar 26, 2020
by
Tiago Peixoto
Browse files
Change max_clique() doctest
parent
f98c0604
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/topology/__init__.py
View file @
611ff5a6
...
...
@@ -823,20 +823,8 @@ def max_cliques(g):
--------
>>> g = gt.collection.data["polblogs"]
>>> for i, c in enumerate(gt.max_cliques(g)):
... print(c)
... if i == 9:
... break
[ 0 1434 1244]
[ 0 643 433 1244]
[ 0 20 1244]
[ 0 640 1130 366 567]
[ 0 640 322 67 54 154]
[ 0 640 67 114 54 154]
[ 0 640 322 240 84 54 154]
[ 0 640 433 114 84 54 154]
[ 0 640 641 20 54 154]
[ 0 640 322 20 54 154]
>>> sum(1 for c in gt.max_cliques(g))
49618
References
----------
...
...
Write
Preview
Markdown
is supported
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