Integrated version with graph
Integrated version with graph