Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-09-12 14:51:01


On Sep 12, 2007, at 1:39 AM, abhishek.v_at_[hidden] wrote:
> My code for the corresponding code is as follows :-
>
> std::vector<vertex_descriptor> p(num_vertices(g));
> std::vector<int> d(num_vertices(g));
> vertex_descriptor s = vertex(L1, g); //Giving error Undeclared
> identifier L1.
> Here L1 is the name of my vertex. Also i tried Vertex_name(u) to
> this parameter but it is giving compilation error.
> What parameter need to be passed for this.

What do you mean by the "name" of your vertex? In the example code,
'A' is an enumerator value (which ends up being the integer 0, I
believe). the "vertex" function requires an integer and the graph to
retrieve a vertex descriptor.

        - Doug


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