src/hdalab/utils.py
changeset 293 b33caeba7faa
parent 291 44af3e5e4114
child 319 fef4317b915f
equal deleted inserted replaced
292:f6742c41d7a3 293:b33caeba7faa
    59         #logger.debug(self.cat_nb_nodes)
    59         #logger.debug(self.cat_nb_nodes)
    60 
    60 
    61 
    61 
    62 
    62 
    63 class CircleNodePlacer(NodePlacer):
    63 class CircleNodePlacer(NodePlacer):
    64     
    64     #TODO: Does not work. Meant to be a real circle placer
    65     def init(self, cat_nb_nodes_initial):
    65     def init(self, cat_nb_nodes_initial):
    66         for c in cat_nb_nodes_initial:
    66         for c in cat_nb_nodes_initial:
    67             self.max_length = cat_nb_nodes_initial[c] if cat_nb_nodes_initial[c] > self.max_length else self.max_length
    67             self.max_length = cat_nb_nodes_initial[c] if cat_nb_nodes_initial[c] > self.max_length else self.max_length
    68         for i_cat,c in enumerate(cat_nb_nodes_initial):
    68         for i_cat,c in enumerate(cat_nb_nodes_initial):
    69             self.cat_nb_nodes[c] = []
    69             self.cat_nb_nodes[c] = []