A PHP version of Hawick-James algorithm for listing circuits in a directed graph.