Restore code for graphs processing