Adding option to return edge data along with cycles