Interface Relationship

All Superinterfaces:
Entity

public interface Relationship extends Entity
Represents a relationship between two nodes in a structure.

A relationship connects a source node (FROM) to a target node (TO), forming the edges of the structure graph. Relationships are entities and can be visited using a StructureVisitor.

Since:
2023-04-25
  • Method Details

    • getFrom

      Node getFrom()
      Returns:
      The node on the FROM side of this relationship
    • getTo

      Node getTo()
      Returns:
      The node on the TO side of this relationship