code: public void addRelation(RelationType relationType, RelationDirection direction) {
  	int idx = relationType.ordinal();
  	directions[idx] = directions[idx].sum(direction);
      }
docs: Adds, eventually merging, a direction for the specified relation type
  @param relationType
  @param direction