Ejemplo n.º 1
0
 def __init__(self, group):
     Graph.__init__(self)
     apex = group.apex()
     for elem in apex:
         self._add_element(elem)
     for i, vertex in enumerate(self._vertices):
         instance = MultiModeStringFormatter.mixin_to(Integer(vertex))
         instance.str_mode = 'verbose'
         self._vertices[i] = instance
Ejemplo n.º 2
0
 def integer(self, value):
     self._integer = MultiModeStringFormatter.mixin_to(value)
     if self._factorization_enabled:
         self._integer.str_mode = 'verbose'
     self._update_integer()
Ejemplo n.º 3
0
 def transform_number(number):
     if type(number) not in (SpectraElement, Integer):
         number = Integer(number)
     return MultiModeStringFormatter.mixin_to(number)
Ejemplo n.º 4
0
def max_orders_wrapped(group):
    extend = lambda elem: MultiModeStringFormatter.mixin_to(elem,
                                                            mode='verbose')
    return list(map(extend, maximal_orders(group)))
Ejemplo n.º 5
0
def max_orders_wrapped(group):
    extend = lambda elem: MultiModeStringFormatter.mixin_to(elem, mode='verbose')
    return map(extend, maximal_orders(group))