josubg | 9 Jul 2012 12:13
Picon

find_vertex() not works


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?

--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/find-vertex-not-works-tp4024750.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
Tiago de Paula Peixoto | 9 Jul 2012 13:31
Picon
Gravatar

Re: find_vertex() not works

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.

Cheers,
Tiago

--

-- 
Tiago de Paula Peixoto <tiago <at> skewed.de>

_______________________________________________
(Continue reading)

josubg | 11 Jul 2012 10:22
Picon

Re: find_vertex() not works

I can't clone your main repo. I cloned the github ones but ins't updated with
the new changes. The gitorious ones also is outdated.

thanks for the quick fix!

--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/find-vertex-not-works-tp4024750p4024752.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
Tiago de Paula Peixoto | 11 Jul 2012 10:41
Picon
Gravatar

Re: find_vertex() not works

On 07/11/2012 10:22 AM, josubg wrote:
> I can't clone your main repo. I cloned the github ones but ins't updated with
> the new changes. The gitorious ones also is outdated.

I've updated the github and gitorious repos.

Cheers,
Tiago 

--

-- 
Tiago de Paula Peixoto <tiago <at> skewed.de>

_______________________________________________
graph-tool mailing list
graph-tool <at> skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool
Nasgar | 11 Jul 2012 10:42
Picon

Re: find_vertex() not works

Thanks a Lot!

On Wed, Jul 11, 2012 at 10:41 AM, Tiago de Paula Peixoto <tiago <at> skewed.de> wrote:
On 07/11/2012 10:22 AM, josubg wrote:
> I can't clone your main repo. I cloned the github ones but ins't updated with
> the new changes. The gitorious ones also is outdated.

I've updated the github and gitorious repos.

Cheers,
Tiago


--
Tiago de Paula Peixoto <tiago <at> skewed.de>




_______________________________________________
graph-tool mailing list
graph-tool <at> skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool


_______________________________________________
graph-tool mailing list
graph-tool <at> skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Gmane