compare the following codes:
1.First I create Graph using vecS parameter:
typedef
boost::adjacency_list
Hi Aaronyinyong,
When VertexList=vecS, the vertex_descriptor type happens to be int. When
VertexList=listS, the vertex_descriptor type is void*. In general, you
shouldn't count on the vertex_descriptor being a particular type. Look in
the example/ directory and grep for listS to find examples of creating a
graph in a way that avoids the dependence on having vertex_descriptor=int.
Cheers,
Jeremy
On Sat, 26 Oct 2002, aaronyinyong wrote:
aarony> compare the following codes:
aarony> 1.First I create Graph using vecS parameter:
aarony> typedef
aarony> boost::adjacency_list
participants (2)
-
aaronyinyong
-
Jeremy Siek