Class DefaultEdgeCreator<T>

    • Constructor Detail

      • DefaultEdgeCreator

        public DefaultEdgeCreator()
    • Method Detail

      • createEdge

        public RepastEdge<T> createEdge​(T source,
                                        T target,
                                        boolean isDirected,
                                        double weight)
        Creates an Edge with the specified source, target, direction and weight.
        Specified by:
        createEdge in interface EdgeCreator<RepastEdge<T>,​T>
        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.