C++ library for implementing degree-driven geometric algorithms