You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings,
I wish to obtain the out-degree and out-strength of a node in an aggregate network, but have been unable to do so with the available functions.
I first created a multilayer network with three layers, and then subsequently created the aggregate network.
mnet=pymnet.MultilayerNetwork(aspects=1, directed=False, fullyInterconnected=False)
# Add individual layers to the multiplex networkmnet.add_layer("layer1")
mnet.add_layer("layer2")
mnet.add_layer("layer3")
...
...
AN=pymnet.aggregate(mnet, 1)
Using list(AN) and list(AN.edges), I was able to verify that the appropriate nodes and edges exist in the aggregate network.
I have been able to obtain the aggregated weight for an edge in the aggregate network using AN[source, target], but I have not been able to get further information such as the degree of a node.
In the following code, I was able to get the node label as output, and also the degree distribution. But with the exception of these two, the others output 0.
Greetings,
I wish to obtain the out-degree and out-strength of a node in an aggregate network, but have been unable to do so with the available functions.
I first created a multilayer network with three layers, and then subsequently created the aggregate network.
Using
list(AN)
andlist(AN.edges)
, I was able to verify that the appropriate nodes and edges exist in the aggregate network.I have been able to obtain the aggregated weight for an edge in the aggregate network using
AN[source, target]
, but I have not been able to get further information such as the degree of a node.In the following code, I was able to get the node label as output, and also the degree distribution. But with the exception of these two, the others output 0.
I found a few private functions within the
MultilayerNetwork
class, but the functions I tried below were also giving the output as 0.I seek your guidance on the appropriate method to identify the characteristics of a node in an aggregate network.
Thank you
The text was updated successfully, but these errors were encountered: