Bugfixes

Fixes for Graph class
inverse
Copy constructor