/**
* @see edu.indiana.extreme.xbaya.graph.GraphFactory#createEdge(edu.indiana.extreme.xbaya.graph.Port,
* edu.indiana.extreme.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;