Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hi stoyan? (Read 2754 times)
Taivan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 37
Joined: Jun 15th, 2012
Hi stoyan?
Jul 5th, 2012 at 6:37am
Print Post  
I have 2 controlNodes and how to know control nodes are linked?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hi stoyan?
Reply #1 - Jul 5th, 2012 at 8:47am
Print Post  
Hi,

Use this method:

Code
Select All
private bool Connected(DiagramNode node1, DiagramNode node2)
{
	return
		node1.Query("outlinks/destination").Contains(node2) ||
		node1.Query("inlinks/origin").Contains(node2);
} 



Alternatively, create an undirected PathFinder instance and check if FindShortestPath returns a path with a single link.

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


I Love MindFusion!

Posts: 37
Joined: Jun 15th, 2012
Re: Hi stoyan?
Reply #2 - Jul 5th, 2012 at 9:28am
Print Post  
GOOD THANKS MAN
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint