Interface EdgeCreator<E extends RepastEdge,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      E createEdge​(T source, T target, boolean isDirected, double weight)
      Creates an Edge with the specified source, target, direction and weight.
      Class getEdgeType()
      Gets the edge type produced by this EdgeCreator.
    • Method Detail

      • getEdgeType

        Class getEdgeType()
        Gets the edge type produced by this EdgeCreator.
        Returns:
        the edge type produced by this EdgeCreator.
      • createEdge

        E createEdge​(T source,
                     T target,
                     boolean isDirected,
                     double weight)
        Creates an Edge with the specified source, target, direction and weight.
        Parameters:
        source - the edge source
        target - the edge target
        isDirected - whether or not the edge is directed
        weight - the weight of the edge
        Returns:
        the created edge.