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.
Syncfusion Feedback

How to get all connections for every node

Thread ID:

Created:

Updated:

Platform:

Replies:

73133 Apr 21,2008 09:18 PM UTC Apr 25,2008 08:28 AM UTC Windows Forms 2
loading
Tags: Diagram
Steve
Asked On April 21, 2008 09:18 PM UTC

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.


Steve
Replied On April 22, 2008 03:34 PM UTC

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
Next
Next


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

Hi Steve,

Thank you for your update.

Regards,
Fathima


CONFIRMATION

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.

Warning Icon 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.Close Icon

;