We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to get all connections for every node

Thread ID:





73133 Apr 21,2008 05:18 PM Apr 25,2008 04:28 AM Windows Forms 2
Tags: Diagram
Asked On April 21, 2008 05:18 PM

I have a diagram that has a number of bitmap nodes and connections (DirectedLineLinkTool) between a number of them. How can I cycle through all the bitmap nodes and tell (for each) what connections there are to another node? Ideally I would like to get the parent and child node it is connected to.

Replied On April 22, 2008 11:34 AM

For those who face a similar question, here is what I found that works...

For Each n As Node In Diagram1.Model.Nodes
Dim edge As IGraphEdge
For Each edge In n.Edges
Dim hn As Node
Dim en As Node
hn = edge.FromNode
en = edge.ToNode
If hn.Name = n.Name Then
Debug.WriteLine(hn.Name & " connected to " & en.Name)
End If

Fathima Shalini P [Syncfusion]
Replied On April 25, 2008 04:28 AM

Hi Steve,

Thank you for your update.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.