Class DirectedGraph<ID>

java.lang.Object
com.github.moaxcp.graphs.AbstractGraph<ID>
com.github.moaxcp.graphs.DirectedGraph<ID>
All Implemented Interfaces:
Graph<ID>

public class DirectedGraph<ID> extends AbstractGraph<ID>
  • Constructor Details

    • DirectedGraph

      public DirectedGraph()
    • DirectedGraph

      public DirectedGraph(ID id)
  • Method Details

    • newEdgeKey

      protected EdgeKey<ID> newEdgeKey(ID from, ID to)
      Specified by:
      newEdgeKey in class AbstractGraph<ID>
    • isDirected

      public boolean isDirected()
      Description copied from interface: Graph
      Returns true if this graph is directed.
      Returns:
      if this graph is directed