APAC: An exact algorithm for retrieving cycles and paths in all kinds of graphs - Simões,Ricardo (2009)