Boost logo

Boost Users :

From: Cromwell Enage (sponage_at_[hidden])
Date: 2004-09-15 07:54:04


--- Lars Kunert <lkunert_at_[hidden]> wrote:
> Hi!

Hello, there.

> I am using a graph with setS as EdgeList
> template-parameter.
>
> I currently try to implement to get the number of
> neighbors which two
> vertices have in common.
> I tried to solve this problem by walking thought
> both out_edge_iterator -
> ranges in parallel.
>
> tie(i, i_end) = out_edges(vertex_i, graph);
> tie(j, j_end) = out_edges(vertex_j, graph);

[snip]

I'm assuming you're using adjacency_list with vecS as
your VertexList template parameter. Try using
adjacent_vertices instead of out_edges.

                              Cromwell Enage

                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


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