having trouble with Graph library.

Mar 11 2005 9:37 AM
i am working with QuickGraph which is a C# port of the Boost Graph Library. I am having trouble with putting my 3D array into this method. It accepts a 2d array fine but locks up with 3. Code: public void GeneratePath(int outi, int outj, int outk) { // here we use a uniform probability distribution among the out-edges //QuickGraph.Algorithms.ShortestPath. CyclePoppingRandomTreeAlgorithm pop = new CyclePoppingRandomTreeAlgorithm(this.graph); // we can also weight the out-edges /* EdgeDoubleDictionary weights = new EdgeDoubleDictionary(); foreach(IEdge e in this.graph.Edges) weights[e]=1; pop.EdgeChain = new WeightedMarkovEdgeChain(weights); */ // Create a Random Tree with the locations pop.RandomTreeWithRoot(this.location[outi, outj, outk]); this.successors = pop.Successors; } It seems to lock up on the last line. The last line is a VertexEdgeDictionary and the top code is to create an intelligent random path. The array is a vertex

Answers (1)