Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph]
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-04-21 12:49:15


> For a short answer: never.
>>
>> Well, it seemed that sometimes yes.

We'll compromise: sometimes :)

> Undoubtedly, above add_vertex function searches vertex by properties and
> should return descriptor of found vertex. Indeed, it doesn't.
>
> I'm a little bit confused.

I'm a little confused to. The vertex_by_property call will only actually
search the vertices if the adjacency_list is using the named_graph
framework. If you're not using - and its almost certain that you aren't -
the function call evaluates to a no-op.

I would say that for the most part - it's just a push_back.

Andrew Sutton
andrew.n.sutton_at_[hidden]



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