[PM] Move the LazyCallGraph printing functionality to a print method.