This project is read-only.

Custom Vertex with multiple Edge connection ports

Jan 11 at 4:23 PM
Edited Jan 11 at 4:30 PM
Dear all,

I am an Graph# enthusiast and have used it extensively in various applications... I am now struggling however to get a custom vertex implemented that provides for a multitude of connection ports (sort of speech), my edges then require to be routed between for instance:
Vertex1.port1 -> Vertex2.port4
Vertex1.port2 -> Vertex3.port1
Vertex3.port2 -> Vertex2.port2
etc...

See image example of what I am trying to achieve.
___________________________
|   1  |   2  |   3  |  n |      <- VERTEX 1
---------------------------
    |      |
    |      |_____________
    |               _____|_____________________  
    |               |   1  |   2  |   3  |  n |     <- VERTEX 3
    |               ----------|----------------
    |                         |
    |                         |
    |               __________|________________  
    |               |   1  |   2  |   3  |  4 |     <- VERTEX 2
    |               ------------------------|--
    |                                       |
    |_______________________________________|
I have tried to using a Compound graph without success...

Some hints towards how to achieve this would be greatly appreciated, even better some small code example of C# code and WPF would be absolutely splendid :-)

Thanks!

Joel.