I have downloaded the source code for examples of mxgraph from the following website "https://github.com/jgraph/jgraphx". I am customizing mxgraph GraphEditor example program for creating my own graph editor.There is no specified ports for connecting edges. From the examples ports.java ,there is a specified ports for connecting edges.I need exactly the same in GraphEditor Program. I have tried a lot but i couldn't add ports to the blocks. Help me to add ports to the mxcell of GraphEditor program.