/**
* @see org.apache.airavata.xbaya.graph.GraphFactory#createEdge(org.apache.airavata.xbaya.graph.Port,
* org.apache.airavata.xbaya.graph.Port)
*/
public EdgeImpl createEdge(Port fromPort, Port toPort) {
Kind fromKind = fromPort.getKind();
Kind toKind = toPort.getKind();
if (!((fromKind == Kind.DATA_OUT && toKind == Kind.DATA_IN)
|| (fromKind == Kind.CONTROL_OUT && toKind == Kind.CONTROL_IN) || (fromKind == Kind.EPR && toKind == Kind.DATA_IN))) {
throw new XBayaRuntimeException();
}
EdgeImpl edge;