Class Edge


  • public class Edge
    extends GraphEntity
    A class represent an edge (graph entity). In addition to the base class id and properties, an edge shows its source, destination and relationship type
    • Constructor Detail

      • Edge

        public Edge()
    • Method Detail

      • getRelationshipType

        public String getRelationshipType()
        Returns:
        the edge relationship type
      • setRelationshipType

        public void setRelationshipType​(String relationshipType)
        Parameters:
        relationshipType - - the relationship type to be set.
      • getSource

        public long getSource()
        Returns:
        The id of the source node
      • setSource

        public void setSource​(long source)
        Parameters:
        source - - The id of the source node to be set
      • getDestination

        public long getDestination()
        Returns:
        the id of the destination node
      • setDestination

        public void setDestination​(long destination)
        Parameters:
        destination - - The id of the destination node to be set