Interface EdgeFactory<T extends Edge>


public interface EdgeFactory<T extends Edge>
An interface aimed at dynamically creating edge objects.
Since:
September 2007
  • Method Summary

    Modifier and Type Method Description
    T newInstance​(String id, Node src, Node dst, boolean directed)
    Create a new instance of edge.
  • Method Details

    • newInstance

      T newInstance​(String id, Node src, Node dst, boolean directed)
      Create a new instance of edge.
      Parameters:
      id - The new edge identifier.
      src - The source node.
      dst - The target node.
      directed - Is the edge directed (in the direction source toward target).
      Returns:
      The newly created edge.