Refactored to AbstractGraphVisitor (from EmptyGraphVisitor).
cleanup