Fixed /graph endpoint to return desired format nodes/rels

Fixed the visualisation