Hi!

Has there recently been a change in the subgraph method?
The following code currently break (which did not break before).

Thanks,

Anne


sage: DynkinDiagram(['C',3,1]).subgraph([1])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Applications/sage-4.4/devel/sage-combinat/sage/combinat/<ipython console> in 
<module>()

/Applications/sage/local/lib/python2.6/site-packages/sage/graphs/generic_graph.pyc
 in subgraph(self, vertices, edges, inplace, vertex_property, edge_property, 
algorithm)
   6234             return self._subgraph_by_deleting(vertices=vertices, 
edges=edges,
   6235                                               inplace=inplace,
-> 6236                                               
edge_property=edge_property)
   6237         else:
   6238             return self._subgraph_by_adding(vertices=vertices, 
edges=edges,

/Applications/sage/local/lib/python2.6/site-packages/sage/graphs/generic_graph.pyc
 in _subgraph_by_deleting(self, vertices, edges, inplace, edge_property)
   6491             G = self
   6492         else:
-> 6493             G = self.copy()
   6494         G.name("Subgraph of (%s)"%self.name())
   6495

/Applications/sage/local/lib/python2.6/site-packages/sage/graphs/generic_graph.pyc
 in __copy__(self, implementation, sparse)
    488             sparse = (not isinstance(self._backend, DenseGraphBackend))
    489         from copy import copy
--> 490         G = self.__class__(self, name=self.name(), pos=copy(self._pos), 
boundary=copy(self._boundary), implementation=implementation, sparse=sparse)
    491
    492         attributes_to_copy = ('_assoc', '_embedding')

TypeError: __init__() got an unexpected keyword argument 'implementation'

--
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to