package graphs; import java.util.Collection; /** * The most basic possible graph interface; represents a directed graph. * * @param The vertex type. * @param The edge type. Must be a subtype of {@link Edge}. */ public interface Graph> { /** * Returns an unmodifiable collection of the outgoing edges from the given vertex. * * If given vertex is not in the graph, returns an empty collection. */ Collection outgoingEdgesFrom(V vertex); }