If you're looking for something like that
There is no build in feature like that in cytoscapejs as of today. A possible but hard workaround is to use this plugin to draw ports and a taxi-edge or round-taxi-edge.