> sage: sorted(g.degree(), reverse=True)
> [4, 4, 3, 3, 2, 2, 2]

This is probably what I was thinking of; I didn't see sample code.
Probably in the situations I used, I just used g.degree() all by its
lonesome self, unsorted, because the cases I needed could be done "by
hand".

- kcrisman

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to