cyclegraph: remove redundant code