This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.coursera.algo; | |
import java.util.*; | |
public abstract class Graph<V extends AbstractVertex<E>, E extends AbstractEdge<V>> { | |
private final TreeMap<Integer, V> vertices = new TreeMap<Integer, V>( | |
new Comparator<Integer>() { | |
//for pretty printing | |
@Override |