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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get all connections for every node

Thread ID:





73133 Apr 21,2008 09:18 PM UTC Apr 25,2008 08:28 AM UTC WinForms 2
Tags: Diagram
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.

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

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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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