Class DirectedJungNetwork<T>

All Implemented Interfaces:
Network<T>, Projection<T>

public class DirectedJungNetwork<T> extends JungNetwork<T>
  • Constructor Details

  • Method Details

    • addEdge

      public RepastEdge<T> addEdge(RepastEdge<T> edge)
      Description copied from interface: Network
      Adds the specified edge to this Network. This will change the directionality of the edge to met that of the network.
      Specified by:
      addEdge in interface Network<T>
      Overrides:
      addEdge in class JungNetwork<T>
      Parameters:
      edge - the edge to add.
      Returns:
      the added edge.
    • addEdge

      public RepastEdge<T> addEdge(T source, T target, double weight)
      Description copied from interface: Network
      Adds an edge between the specified objects.
      Parameters:
      source - the source object
      target - the target object
      weight - weight of the new edge
      Returns:
      the created edge.
    • isDirected

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