Breaks away an abstract Graph class, which is subclassed by concrete graph builders.