Graph public functions lock
Renamed graph_lock to mutex