Hello.

Issue is still persists

>>> graph = ig.Graph()
>>> graph.add_vertex()
>>> graph.vs[0]["age"] = 55
>>> graph.vs[0]["age"]
55
>>> graph = ig.Graph.Barabasi(graph.vcount()+3, 3, power=2.5,
start_from=graph, outpref=True)
>>> graph.vs[0]["age"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'Attribute does not exist'



>>> graph = ig.Graph()
>>> graph.add_vertex()
>>> graph.vs[0]["age"] = 55
>>> graph.vs[0]["age"]
55
>>> g = ig.Graph.Barabasi(graph.vcount()+3, 3, power=2.5, start_from=graph,
outpref=True)
>>> g.vs[0]["age"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'Attribute does not exist'
>>> graph.vs[0]["age"]
55
>>>



> Message: 4
> Date: Wed, 14 Jan 2015 21:36:54 +0900
> From: ??????? ????? <[email protected]>
> To: [email protected]
> Subject: [igraph] Save vertex property
> Message-ID:
>         <
> canou2t42vesnpbbceynjfj2teg3emsjvjw_qyuhqk4zxgve...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello
>
> >>> graph = ig.Graph()
> >>> graph.add_vertex()
> >>> graph.vs[0]["age"] = 55
> >>> graph.vs[0]["age"]
> 55
> >>> graph = ig.Graph().Barabasi(graph.vcount()+3, 3, power=2.5,
> start_from=graph, outpref=True)
> >>> graph.vs[0]["age"]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> KeyError: 'Attribute does not exist'
>
>
> It is possible to save "age" property after ig.Graph().Barabasi ?
>
>
> Thanks.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.nongnu.org/archive/html/igraph-help/attachments/20150114/ec7e0025/attachment.html
> >
>
> ------------------------------
>
> Message: 5
> Date: Wed, 14 Jan 2015 15:09:50 +0100
> From: Tamas Nepusz <[email protected]>
> To: Help for igraph users <[email protected]>
> Subject: Re: [igraph] Save vertex property
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> > >>> graph = ig.Graph().Barabasi(graph.vcount()+3, 3, power=2.5,
> > ...   start_from=graph, outpref=True)
> I'm quite surprised that it works at all to be honest. The correct
> invocation
> would be:
>
> ig.Graph.Barabasi(graph.vcount()+3, 3, power=2.5, ...)
>
> Graph.Barabasi is a class method so it must be invoked directly on the
> Graph
> class, not on a Graph instance. Can you repeat your code with the above
> modification and check if the issue still persists?
>
> All the best,
> T.
>
>
> ------------------------------
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
> End of igraph-help Digest, Vol 102, Issue 13
> ********************************************
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to