equal
deleted
inserted
replaced
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] = [] |