Ticket #3626: 3626_graphboundary.patch

File 3626_graphboundary.patch, 0.9 kB (added by boothby, 4 months ago)
  • a/sage/graphs/graph.py

    old new  
    894894            sage: G.set_boundary([0,1,2,3,4]) 
    895895            sage: G.get_boundary() 
    896896            [0, 1, 2, 3, 4] 
    897  
     897            sage: G.set_boundary((1..4)) 
     898            sage: G.get_boundary() 
     899            [1, 2, 3, 4] 
    898900        """ 
    899901        if isinstance(boundary,list): 
    900902            self._boundary = boundary 
     903        else: 
     904            self._boundary = list(boundary) 
    901905 
    902906    def set_embedding(self, embedding): 
    903907        """