cyclegraph: add public CycleGraph::checkReachable()