Class Edge<V extends Vertex>

  • Type Parameters:
    V - the vertex type.
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IREdge, RuntimeEdge

    public class Edge<V extends Vertex>
    extends java.lang.Object
    implements java.io.Serializable
    Connects two vertices of a DAG. This class can be extended for various DAG representations.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Edge​(java.lang.String id, V src, V dst)
      Constructor for Edge.
    • Constructor Detail

      • Edge

        public Edge​(java.lang.String id,
                    V src,
                    V dst)
        Constructor for Edge.
        Parameters:
        id - ID of the edge.
        src - source vertex.
        dst - destination vertex.
    • Method Detail

      • getId

        public final java.lang.String getId()
        Returns:
        the ID of the edge.
      • getNumericId

        public final java.lang.Integer getNumericId()
        Returns:
        the numeric ID of the edge. (for edge id "edge-2", this method returns 2)
      • getSrc

        public final V getSrc()
        Returns:
        source vertex.
      • getDst

        public final V getDst()
        Returns:
        destination vertex.
      • getPropertiesAsJsonNode

        public com.fasterxml.jackson.databind.JsonNode getPropertiesAsJsonNode()
        Returns:
        JSON representation of additional properties