Since you are working on it, I really like better

    Graph.connected_components_sizes()

rather than

    Graph.connected_components_sizes_partition()

Otherwise you should chage

    Graph.connected_components_number()

to

    Graph.connected_components_number_integer()

The output can be sorted to look like a partition but it is not clear
why it should be a Partition instance. I guess that my preference
would be

def connected_components_sizes(self):
    return sorted((len(cc) for cc in self.connected_components()), reverse=True)

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to