structural reducibility of multi-layer networks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
multired/python/test/simple_test.py

23 lines
356 B

10 years ago
import multired as mr
import sys
if len(sys.argv) < 2:
print "Usage: %s <layer_list>" % sys.argv[0]
sys.exit(1)
print "Loading layers...",
m = mr.multiplex_red(sys.argv[1], verbose=True)
print "[DONE]"
print "Getting partitons...",
part = m.compute_partitions()
print "[DONE]"
print "Partitions:..."
m.dump_partitions()
m.draw_dendrogram()