|
Boost Users : |
Subject: Re: [Boost-users] [Graph] initialize_vertex change vertex color (visitor)
From: alex (alexhighviz_at_[hidden])
Date: 2014-01-23 06:27:53
>From:The Maschine
>Im getting there, thanks for your help.
>
>One thing that Im getting problems is the definition of the ColorMap.
>
> typedef boost::shared_array_property_map<Color> ColorMap;
> ColorMap colorMap(boost::num_vertices(m_ugraph), indexMap);
>...
>> error: wrong number of template arguments (1, should be 2)
My fault for not trying it out.
How about:
typedef boost::property_map<unGraph, boost::vertex_index_t>::type IndexMap;
typedef boost::shared_array_property_map<Color, IndexMap> ColorMap;
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