I tried adding new connecter both output and input connector dynamically. Result wasn't good the connectors were going out from the node itself. I used the default css provided in demo .Here is the picture:

Anyone else having this problem? any workaround?