public Optional<BlazeEdge> edge(final Object edgeId){
  try (CloseableIterator<Edge> it=edges(edgeId)){
    final Optional<BlazeEdge> e=it.hasNext() ? Optional.of((BlazeEdge)it.next()) : Optional.empty();
    if (it.hasNext()) {
      throw new IllegalStateException("Multiple edges found with id: " + edgeId);
    }
    return e;
  }
 }

public Optional < BlazeEdge > edge ( final Object edgeId ) { try ( CloseableIterator < Edge > it = edges ( edgeId ) ) { final Optional < BlazeEdge > e = it . hasNext ( ) ? Optional . of ( ( BlazeEdge ) it . next ( ) ) : Optional . empty ( ) ; if ( it . hasNext ( ) ) { throw new IllegalStateException ( "Multiple edges found with id: " + edgeId ) ; } return e ; } }
lookup an edge by id .
