Modified the global graph API to use ids instead of references everywhere.
Modify the base class to refect the API changes
Edges are now ids-powered
The vertices are now also ids-powered