Implemented graph separation
Optimize data handling