[graph-tool] find_vertex() not works

Tiago de Paula Peixoto tiago at skewed.de
Mon Jul 9 13:31:45 CEST 2012

On 07/09/2012 12:13 PM, josubg wrote:
> I'm trying to retrieve all the nodes of a graph that belong to a specific
> type. I use the find_vertex for this: 
>      referents = find_vertex(graph, graph.vertex_properties['type'],
> 'referent')
> But all I get is this error:
>        File "/usr/lib/python2.7/dist-packages/graph_tool/util/__init__.py",
> line 58, in find_vertex
>             (val, val))
>    TypeError: No registered converter was able to extract a C++ reference to
> type graph_tool::GraphInterface from this Python          object of type
> Graph.
> Any clue of what is the problem?

This is a bug. I have fixed it now in the git version.


Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20120709/fa9f2bd0/attachment.asc>

More information about the graph-tool mailing list