cran / multinet

:exclamation: This is a read-only mirror of the CRAN R package repository. multinet — Analysis and mining of multilayer social networks
6 stars 6 forks source link

Layer Selection Fails on write.ml function #1

Open interdonatos opened 7 years ago

interdonatos commented 7 years ago

Hi,

I was trying to select a single layer when writing down a 3 layer network, but the option seems not to be effective at all. More specifically, trying to select just layer 3 with the command:

write.ml(net, "partialFile.mpx", format="multilayer", layers=3)

results in a network which appears to have the same edges as the input one (layers="3" gives the same result, while layers=character(3) returns a "cannot find layer").

Moreover, the resulting "LAYERS" section in the preamble has a weird syntax, e.g., from the one in the original net:

LAYERS

1,UNDIRECTED 2,UNDIRECTED 3,UNDIRECTED

you obtain:

LAYERS

3,3,UNDIRECTED 2,2,UNDIRECTED 1,1,UNDIRECTED 3,2,UNDIRECTED 3,1,UNDIRECTED 2,3,UNDIRECTED 2,1,UNDIRECTED 1,3,UNDIRECTED 1,2,UNDIRECTED

Thank you for your help, Roberto

magnanim-old commented 7 years ago

Hi, you can file issues on the development site: https://github.com/magnanim/multinet/issues