Commit 5c370c56 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix issue with motif_significance()

This fixes issue #444.
parent 00de67ff
......@@ -428,7 +428,7 @@ def _graph_sig(g):
"""return the graph signature, i.e., the in and out degree distribution as
concatenated as a tuple."""
bins = list(range(0, g.num_vertices() + 1))
in_dist = vertex_hist(g, "in", bins=bins if g.is_directed() else [0],
in_dist = vertex_hist(g, "in", bins=bins if g.is_directed() else [0, 1],
float_count=False)
out_dist = vertex_hist(g, "out", bins=bins, float_count=False)
sig = tuple([(in_dist[1][i], in_dist[0][i]) for \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment