Optimizations

Optimized the GraphManager and added a “Classify” endpoint.