Boost logo

Boost Users :

Subject: Re: [Boost-users] BGL vertex(std::size_t i, Graph) is in no concept
From: Sebastian Weber (sebastian.weber_at_[hidden])
Date: 2009-09-04 12:58:32


Hi!

This is what I figured - that it is the inverse. Looks like the BGL has
evolved quite far from the date the documentation has been written...

Looking at the discussion I am curious what will be decided upon it. Andrews
suggestions sound reasonable.

Sebastian

On Fri, Sep 4, 2009 at 4:51 PM, Jeremiah Willcock <jewillco_at_[hidden]>wrote:

> On Fri, 4 Sep 2009, Sebastian Weber wrote:
>
> Hi!
>>
>> If I am not wrong, then the vertex(std::size_t i, Graph) function is
>> required in no graph concept at all. However, adjacency_list
>> defines it and csr-graphs use it ...
>>
>> Did I overlook something or shouldn't the function belong to some graph
>> concept?
>>
>
> I have now made the CSR graphs not use it for other graphs being copied
> into CSR format. There should not be any other algorithms that use it;
> however, it is provided by almost all graphs. It is the inverse function to
> the vertex_index property map. Some graphs also have edge_from_index which
> is the inverse of the edge_index property map.
>
> -- Jeremiah Willcock
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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