# HG changeset patch
# User Travis Scrimshaw <tscrim@ucdavis.edu>
# Date 1371110051 25200
# Node ID 2158fe85a2c3e67453f1af94310c7a358edf2726
# Parent aa550bc1e0d3af9b39f30f5b7a608845098880e9
#14732: review patch.
diff git a/sage/combinat/posets/posets.py b/sage/combinat/posets/posets.py
a

b

class FinitePoset(UniqueRepresentation, 
1438  1438  sage: P.to_graph() 
1439  1439  Graph on 4 vertices 
1440  1440  sage: P = Poset() 
1441   sage: P.to_graph() 
 1441  sage: G = P.to_graph(); G 
1442  1442  Graph on 0 vertices 
 1443  
 1444  Check that it is hashable:: 
 1445  
 1446  sage: hash(G) == hash(G) 
 1447  True 
1443  1448  """ 
1444  1449  from sage.graphs.graph import Graph 
1445   return Graph(self.hasse_diagram()) 
 1450  G = Graph(self.hasse_diagram()) 
 1451  G._immutable = True 
 1452  return G 
1446  1453  
1447  1454  def level_sets(self): 
1448  1455  """ 