mnets / pymnet

The original library for analyzing multilayer networks.
https://mnets.github.io/pymnet/
GNU General Public License v3.0
122 stars 24 forks source link

Assertion error. #17

Closed chhyunch closed 3 months ago

chhyunch commented 11 months ago

mnet = MultilayerNetwork(aspects=2) #aspects==dimension mnet[1,2,'a','b','x','y']=1 mnet.add_layer('c',1) mnet.add_layer('z', 2) fig=draw(mnet)

I tried example of multi aspects. But they said,

Traceback (most recent call last): File "D:/TSMM/2.DigitalHumanities/MultilayerNetworksLibrary/multi_aspect2.py", line 14, in fig=draw(mnet) File "D:\TSMM\2.DigitalHumanities\MultilayerNetworksLibrary\pymnet\visuals\drawcore.py", line 159, in draw assert net.aspects==1 AssertionError

cloner174 commented 5 months ago

Hi, Be Aware that the draw function can only draw the networks with just and only one aspect:

The network can be any type of multilayer
    network with a single aspect.
ercco commented 3 months ago

Like @cloner174 said, the draw functionality is unfortunately only implemented for single-aspect networks.