Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost Graph Library] Example fails with dynamic allocated array?
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2008-11-18 13:39:21


>
> Can anyone see why they are different? The reason I need to dynamically
> allocate, is because I don't know the number of nodes and edges at compile
> time. Please provide suggestions, thanks a lot!
>

Define "different".

You don't need to worry about any of the allocation. Just use add_vertex()
and add_edge() as need to insert data into your graph. The graph
implementation will manage all of the allocation for you.

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