package graph; import java.util.Iterator; /** A directed graph in which each vertex stores its outgoing edges. */ public class AdjListDigraph implements Digraph { // ---------- INSTANCE VARIABLES ---------- FILL THIS IN // ---------- CONSTRUCTORS ---------- /* Creates an empty graph. The user can add vertices and edges to it. */ public AdjListDigraph() { FILL THIS IN } // ---------- METHODS IMPLEMENTING DIGRAPH ---------- public int numVertices() { FILL THIS IN } public int numEdges() { FILL THIS IN } public Iterator outIncidentEdges(Vertex v) { FILL THIS IN } public Vertex insertVertex(Object element) { FILL THIS IN } public DirectedEdge insertDirectedEdge(Vertex from, Vertex to, Object element) { FILL THIS IN } public void insertReverseOf(DirectedEdge e) { FILL THIS IN } }