public Relationship[] relationships(String genome,RelationshipFilter... filters){
  final Collection<Relationship> col=mRelationships.get(genome);
  if (col == null) {
    return EMPTY_REL;
  }
  final HashSet<Relationship> derivatives=new LinkedHashSet<>();
  for (  final Relationship r : col) {
    if (allAccepted(r,filters)) {
      derivatives.add(r);
    }
  }
  return derivatives.toArray(new Relationship[derivatives.size()]);
}

public Relationship [ ] relationships ( String genome , RelationshipFilter ... filters ) { final Collection < Relationship > col = mRelationships . get ( genome ) ; if ( col == null ) { return EMPTY_REL ; } final HashSet < Relationship > derivatives = new LinkedHashSet < > ( ) ; for ( final Relationship r : col ) { if ( allAccepted ( r , filters ) ) { derivatives . add ( r ) ; } } return derivatives . toArray ( new Relationship [ derivatives . size ( ) ] ) ; }
get all relationships of a given type involving the specified genome at either end of the relationship .
