Moved page graph code to simulation project