RandomWalkAlgortihm - Question About Edge Action

Topics: algorithm, graph
Jul 7, 2011 at 6:00 PM
Edited Jul 7, 2011 at 6:31 PM

EDIT: Oooops, Edge Observers Seems To Do It, sorry to be a bother




I have a guick question about the RandomWalkAlgortihm. From what i can tell the algorotihm should fire A event each step along the path, (the treeevent?), so by looking at those i can build up an idea of the path travelled.

I have the following code (excldued the graph creation for brevity), i've tried everything i can think of to get this up and running, but its got me stumped, so question is what should how should be calling this?, i realise that i'm proably being silly, but i feel like screaming here :-) - Only examples i can find has EdgeEventArgs but i cant find those in the package

 RandomWalkAlgorithm<int, Edge<int>> rw = new RandomWalkAlgorithm<int, Edge<int>>(Graph);

rw.TreeEdge += new EdgeAction<int>(this.TreeEdge);

And have this method:


public void TreeEdge(EdgeAction<int,Edge<int>> e)