On 07/15/2014 07:58 AM, Flavien Lambert wrote:
> Hi, digging to this old question, I eventualy installed the git version and,
> unfortunately, I still have the problem of edge id...
>
>>>> from graph_tool.all import *
>>>> g=load_graph('test.xml')
>>>>
>>>> _vertexIds = g.vertex_properties["_graphml_vertex_id"]
>>>> _edgeIds = g.edge_properties["_graphml_edge_id"]
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 1049,
> in __getitem__
> val = self.get_func(self.g, key)
> File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 1542,
> in <lambda>
> lambda g, k: g.__properties[("e", k)],
> KeyError: ('e', '_graphml_edge_id')
>>>> g.list_properties()
> destination (vertex) (type: long double)
> origin (vertex) (type: long double)
> _graphml_vertex_id (vertex) (type: string)
> name (edge) (type: int32_t)
> weight (edge) (type: long double)This has been fixed now in git. Best, Tiago -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
