Interface ExposesRelationships<T extends RelationshipPattern & ExposesPatternLengthAccessors<?>>

    • Method Detail

      • relationshipTo

        @NotNull
        @Contract(pure=true)
        T relationshipTo​(Node other,
                         String... types)
        Starts building an outgoing relationship to the other node.
        Parameters:
        other - The other end of the outgoing relationship
        types - The types to match
        Returns:
        An ongoing relationship definition, that can be used to specify the type
      • relationshipFrom

        @NotNull
        @Contract(pure=true)
        T relationshipFrom​(Node other,
                           String... types)
        Starts building an incoming relationship starting at the other node.
        Parameters:
        other - The source of the incoming relationship
        types - The types to match
        Returns:
        An ongoing relationship definition, that can be used to specify the type
      • relationshipBetween

        @NotNull
        @Contract(pure=true)
        T relationshipBetween​(Node other,
                              String... types)
        Starts building an undirected relationship between this node and the other.
        Parameters:
        other - The other end of the relationship
        types - The types to match
        Returns:
        An ongoing relationship definition, that can be used to specify the type