Move graph prep from analyzer to superclass.