id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
17449,deprecate/remove Graph.to_partition and Poset.to_graph,ncohen,,"As discussed on sage-devel [1], the two function `Graph.to_partition` and `Poset.to_graph` do not have a very meaningful name.
As `Poset.to_graph` can be obtained from the clearer alternatives `Graph(Poset.hasse_diagram())` or `Poset.hasse_diagram().to_undirected()` it is not a problem to remove it. On the other hand, the discussion on sage-devel seemed to indicate that `Graph.to_partition` should be renamed rather than removed.
Also, as it appeared that people were more interested in the size of connected components than in the actual `Partition` object, the new function will only return a list of integers.
Nathann
[1] https://groups.google.com/forum/#!topic/sage-devel/TeIwE2L2MOQ",defect,closed,major,sage-6.5,graph theory,fixed,,vdelecroix dimpase,,Nathann Cohen,"Dima Pasechnik, Travis Scrimshaw",N/A,,fc84f9d853236f76f720dc1ef4290468873d34f6,fc84f9d853236f76f720dc1ef4290468873d34f6,,