list paths and cycles