pymnet icon indicating copy to clipboard operation
pymnet copied to clipboard

Assertion error.

Open chhyunch opened this issue 1 year ago • 1 comments

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

chhyunch avatar Oct 18 '23 16:10 chhyunch

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.

cloner174 avatar Apr 23 '24 18:04 cloner174

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

ercco avatar Jun 17 '24 09:06 ercco