Open Col-E opened 2 years ago
Rough idea:
interface Graph<K, T> { Map<K, Vertex<T>> vertices(); } interface Vertex<T> { T data(); Set<Edge<T, this> edges(); } interface Edge<T, V extends Vertex<T>> { V from(); V to(); boolean directed(); }
Rough idea: