igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] [python] set a list as an vertex attribute


From: Lukas Harke
Subject: [igraph] [python] set a list as an vertex attribute
Date: Mon, 6 Jul 2015 12:10:12 +0200

Hi all,

I started using igraph for my B.Sc. thesis but i'm struggling when i try to assign a list as an attribute of a vertex.

Here's what i tried:

 self.network.vs(node)[propertyName] = [0, value]

where network is my graph and node the name of the vertex.

When i try to access the elements i got an error (out of bounce) because the length of the list returned is 0.

How can I assign a list as a property of a vertex?

stackoverflow thread: http://stackoverflow.com/questions/31242822/set-list-as-vertex-edge-attribute



Thanks a lot for your help

//Lukas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]