public RelationshipDirection getDirection() {
        return relationshipType.getDirection();
    }
Gets the direction of the relationship.

<p>A {@link RelationshipDirection#DIRECTED} direction is formed from a shape
that defines a reference to another shape (for example, when a resource
defines operations or resources it contains).

<p>A {@link RelationshipDirection#INVERTED} relationship is a relationship
from a shape to a shape that defines a relationship to it. The target
of such a relationship doesn't define the relationship, but is the
target of the relationship.

@return Returns the direction of the relationship.
smithy-model/src/main/java/software/amazon/smithy/model/neighbor/Relationship.java