This is PADS, a library of Python Algorithms and Data Structures implemented by David Eppstein of the University of California, Irvine. PADS is licensed under the MIT Licence (http://opensource.org/licenses/MIT): Copyright (c) 2002-2015, David Eppstein