Interface ExposesRelationships<T extends RelationshipPattern>

    • Method Detail

      • relationshipTo

        T relationshipTo​(Node other,
                         java.lang.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

        T relationshipFrom​(Node other,
                           java.lang.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

        T relationshipBetween​(Node other,
                              java.lang.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