Class RepastEdge<T>

    • Field Detail

      • source

        protected T source
      • target

        protected T target
      • directed

        protected boolean directed
    • Constructor Detail

      • RepastEdge

        protected RepastEdge()
      • RepastEdge

        public RepastEdge​(T source,
                          T target,
                          boolean directed)
      • RepastEdge

        public RepastEdge​(T source,
                          T target,
                          boolean directed,
                          double weight)
    • Method Detail

      • getWeight

        public double getWeight()
        Gets the weight of this edge.
        Returns:
        the weight of this edge.
      • setDirected

        protected void setDirected​(boolean directed)
      • getSource

        public T getSource()
        Get the source of this edge.
        Returns:
        the source of this edge.
      • getTarget

        public T getTarget()
        Gets the target of this edge.
        Returns:
        the target of this edge.
      • isDirected

        public boolean isDirected()
        Returns:
        true if this edge is directed, otherwise false.
      • setWeight

        public void setWeight​(double weight)
        Sets the weight of this edge.
        Parameters:
        weight - the weight edge