GiulioRossetti / TILES

TILES: an algorithm for community discovery in dynamic social networks
doi:10.1007/s10994-016-5582-8
57 stars 19 forks source link

Fix input parameter g #13

Closed yushangdi closed 5 years ago

yushangdi commented 5 years ago

In the original code, if in the constructor we write g = nx.Graph() and we run code

import TILES_exp as t

tl = t.TILES("data/original/gen_simple.tsv", ttl = 7, obs = 10)

tl = t.TILES("data/original/gen_simple.tsv", ttl = 7, obs = 10)

we will get different result. The reason is that python will not actually create a new graph object, it will continue to use the previous graph.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.2%) to 96.026% when pulling 19b1c5fb8d514bef9a957067387efe8d7ec36965 on yushangdi:master into b66352a34dfb6cc47df1e2d70a288af9e9caa386 on GiulioRossetti:master.