TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gemtraveller
NA
22
0
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
Reply
Answers (
1
)
Moving the mouse cursor programmatically
Setting primarykey on Dataset