Draft DegreeSortedGraph implementation