Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Highlighting the path between two nodes. (Read 1967 times)
shikha_garhewal
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Feb 11th, 2009
Highlighting the path between two nodes.
Mar 18th, 2009 at 2:47pm
Print Post  
Hello

Firstly thanks for your replies on my previous queries.

Please suggest me how to achieve following:

1. If we have two nodes (there may be other nodes between both of them) then I want to find the path between them and also how to highlight the path existing between those nodes?

2. how to fill the color in the links between two nodes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Highlighting the path between two nodes.
Reply #1 - Mar 18th, 2009 at 3:06pm
Print Post  
Hi,

Create a PathFinder object and call its FindShortestPath method. Loop over the Links collection of the returned Path and set the links' Pen property.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shikha_garhewal
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Feb 11th, 2009
Re: Highlighting the path between two nodes.
Reply #2 - Mar 18th, 2009 at 3:23pm
Print Post  
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint