throw new RequestException("No edge to resolve");
}
// Sanity check the edges (see #83)
for (final Edge e : edges) {
Node src = e.getSource(), tgt = e.getTarget();
if (src == null || tgt == null) {
final String msg = "edge missing source and target nodes";
throw new RequestException(msg);
}
RelationshipType rel = e.getRelationship();
if (rel == null) {
final String msg = "edge missing relationship";
throw new RequestException(msg);
}
if (noLength(src.getLabel())) {
final String msg = "edge source node label is missing";
throw new RequestException(msg);
}
if (noLength(tgt.getLabel())) {
final String msg = "edge target node label is missing";