Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-02-28 08:53:07


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of David E. Konerding
> Sent: Monday, February 27, 2006 5:09 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [graph] [python]
>
> Doug Gregor wrote:
> >
> > Your guess is correct. We don't cache the Python objects
corresponding
> > to vertex and edge descriptors.
>
> my idea was to keep the
> mapping between on-screen widgets and the graph vertices they
corresponded
> to in a dictionary:
>
> self._widgetmap[vertex] = widget
>
> However, since Vertex objects aren't cached, placing the vertex object
I
> get back from add_vertex obviously isn't going to work.

[Nat] Maybe twiddle the hash function of the Python vertex object so
that it derives its return value from the underlying C++ Vertex?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net