R: fix graph.empty, was renamed wrongly