Boost logo

Boost Users :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2007-08-28 00:26:53


I'm not absolutely sure, but you might be able to pass along a
boost::dummy_property_map (defined in boost/property_map.hpp) as the
property map for node_id. That map will not store any information.

On Aug 27, 2007, at 11:31 PM, Sam Peterson wrote:

> I have been trying (unsuccessfully for the past hour), to read a
> graphviz file into an adjacency_list type. The program stops with a
> SIGABRT because I haven't mapped "node_id" to anything within the
> dynamic properties argument. However, I really have no desire to map
> node_id to anything; this is a very large graph and I'd like to avoid
> the memory consumption.
>
> If I try to map node id to the vertex_index_t map I receive a compiler
> error stating that's a const property map. If I want to map node_id
> to vertex_name_t map, I have to add that property to my adjacency_list
> type which will bloat the memory consumption. I just want to build
> the graph without worry about the properties. Is there anyway this
> can be done easily?
If you don't care about any properties, and you are using Boost from
the svn repository, then you can construct your dynamic_properties
object with the argument '&boost::ignore_other_properties' and it
will not complain about any properties.

HTH,
ron


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