- unfortunately used void* instead of graph_t*