This also adds the missing Graph.get_total_degrees() and missing documentation. This fixes issue #596