|
Boost Users : |
Subject: Re: [Boost-users] Boost Graph: add_edge causes compiler error
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2010-03-26 18:54:17
> add_edge(g[0], g[1], g);
>
g[v] returns /properties/ of a vertex, not the vertex descriptor. In the
case of adjacency_list<vecS, vecS,...> you should just be able to write:
add_edge(0, 1, g)
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