Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
3ad8fbf8
Commit
3ad8fbf8
authored
Apr 21, 2015
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code/comments from nested_blockmodel.py
parent
d00af0dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
src/graph_tool/community/nested_blockmodel.py
src/graph_tool/community/nested_blockmodel.py
+0
-7
No files found.
src/graph_tool/community/nested_blockmodel.py
View file @
3ad8fbf8
...
...
@@ -326,10 +326,6 @@ class NestedBlockState(object):
if
_bm_test
():
from
graph_tool.topology
import
similarity
print
(
"- similarity:"
,
similarity
(
bstate
.
g
,
self
.
levels
[
l
+
2
].
g
))
# if similarity(bstate.g, self.levels[l + 2].g) < 1:
# from graph_tool.draw import graph_draw
# graph_draw(bstate.g)
# graph_draw(self.levels[l + 2].g)
if
abs
(
bstate
.
entropy
()
-
self
.
levels
[
l
+
2
].
entropy
())
>
1e-6
:
...
...
@@ -344,9 +340,6 @@ class NestedBlockState(object):
print
(
bstate
.
eweight
.
a
)
print
(
self
.
levels
[
l
+
2
].
eweight
.
a
)
# from graph_tool.draw import graph_draw, prop_to_size
# graph_draw(bstate.g, vertex_fill_color=bstate.b)
# graph_draw(self.levels[l + 2].g, vertex_fill_color=self.levels[l + 2].b)
nclabel
=
self
.
__project_partition
(
l
,
l
+
1
)
print
(
nclabel
.
a
)
print
(
clabel
.
a
)
...
...
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