Compilation error fixes:removing nodes of a graph