igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] adding attribute to an edge, depending on nodes


From: Marco
Subject: Re: [igraph] adding attribute to an edge, depending on nodes
Date: Fri, 7 Nov 2008 19:06:35 +0100

On Fri, Nov 7, 2008 at 7:01 PM, Tamas Nepusz <address@hidden> wrote:

> Actually, so do I ;) So I really don't know what's going wrong there.
> Can you please try printing g.es["color"] after assignment?

It prints, correctly, the color that has been assigned to the attribute 'color'.
eg:
g.es[g.ecount()-1]['color']='red'
print g.es[g.ecount()-1]['color']

then prints red

:)


Thanks,

m




reply via email to

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