searchgraph with fixed errors