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/test.py

34 lines
552 B

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])
print "[DONE]"
print "Computing layer entropies...",
m.compute_layer_entropies()
print "[DONE]"
print "Computing JSD matrix...",
m.compute_JSD_matrix()
print "[DONE]"
print "Performing reduction...",
m.reduce()
print "[DONE]"
print "Getting partitons...",
part = m.compute_partitions()
print "[DONE]"
print "Partitions:...",
m.dump_partitions()
print "[DONE]"