[graph] How to find the number of adjacent nodes

Hi Is there any easy method to find out the number of adjacent nodes in a graph? I am using adjacency_list with listS as parameters. Hence I i am unable to subtract the vertex iterator values returned by adjacent_vertices. Thanks suresh -- R. Suresh Kumar PhD Student, Vislab #216, Engineering II Bldg University of California, Riverside,

Hi Suresh, There are non-member functions called out_degree and in_degree. Their signature is documented in http://www.boost.org/doc/libs/1_41_0/libs/graph/doc/adjacency_list.html Regards Tobias On Tuesday 22 December 2009 03:26:26 am Suresh Kumar wrote:
Hi
Is there any easy method to find out the number of adjacent nodes in a graph? I am using adjacency_list with listS as parameters. Hence I i am unable to subtract the vertex iterator values returned by adjacent_vertices.
Thanks suresh
-- R. Suresh Kumar PhD Student, Vislab #216, Engineering II Bldg University of California, Riverside,
-- __________________________ Tobias Columbus t.columbus@gmx.de
participants (2)
-
Suresh Kumar
-
Tobias Columbus