Optimized memory usage by using generator expr.
Added tool for building digraph by degree sequence.
Added missing import.
Added tests for build_digraph.