Package cdc.graphs

Interface GraphEdge<N>

  • Type Parameters:
    N - Node type.

    public interface GraphEdge<N>
    Basic interface for graph edges.
    Author:
    Damien Carbonne
    • Method Detail

      • getSource

        N getSource()
        Returns:
        The source node.
      • getTarget

        N getTarget()
        Returns:
        The target node.
      • getTip

        default N getTip​(EdgeTip tip)
        Returns the source or target node.
        Parameters:
        tip - Tip to return. Must not be null.
        Returns:
        Source or target node, depending on tip.