Interface EdgeId

    • Method Detail

      • getSource

        Object getSource()
        Get the source vertex.
        Returns:
        the object at the edge source
      • getDestination

        Object getDestination()
        Get the destination vertex.
        Returns:
        the object at the edge destination
      • getDirectedType

        DirectedType getDirectedType()
        Get the directionality of the current edge.
        Returns:
        the directed type
      • isDirected

        default boolean isDirected()
        Returns:
        true if directed is DIRECTED, EITHER or null. Otherwise false.
      • isUndirected

        default boolean isUndirected()
        Returns:
        true if directed is UNDIRECTED, EITHER or null. Otherwise false.
      • getMatchedVertex

        EdgeId.MatchedVertex getMatchedVertex()
        Get the vertex which is to be reported if a matched vertex is requested.
        Returns:
        the matched vertex
      • isEqual

        default boolean isEqual​(EdgeId that)
        Note this does not include the matchedVertex field.
        Parameters:
        that - the reference EdgeId with which to compare.
        Returns:
        true if this object is the same as the edge argument; false otherwise.
      • isRelated

        default ElementId.Matches isRelated​(ElementId that)
        This is related to an ElementId if either the ElementId is equal to this EdgeId or it is an EntityId and its identifier matches this EdgeId's source or destination.
        Specified by:
        isRelated in interface ElementId
        Parameters:
        that - the ElementId to compare
        Returns:
        An instance of ElementId.Matches to describe how the ids are related.
      • isRelated

        default ElementId.Matches isRelated​(EntityId that)
        This is related to an EntityId if the EntityId's identifier matches this EdgeId's source or destination.
        Parameters:
        that - the ElementId to compare
        Returns:
        An instance of ElementId.Matches to describe how the ids are related.
      • getMatchedVertexValue

        default Object getMatchedVertexValue()
      • getAdjacentMatchedVertexValue

        default Object getAdjacentMatchedVertexValue()