added graph library, hooked in a controller to access it