cyclegraph: add edgeCreatesCycle() function