GraphSchema.EDGE_TYPE_ATTRIBUTE);
EdgeImpl edge;
if (GraphSchema.EDGE_TYPE_DATA.equals(type)) {
edge = new DataEdge(edgeElement);
} else if (GraphSchema.PORT_TYPE_CONTROL.equals(type)) {
edge = new ControlEdge(edgeElement);
} else {
// Default is WsPort because of backword compatibility
edge = new DataEdge(edgeElement);
}
return edge;