Example #1
0
 def _create_tree(self) -> None:
     edges = []
     for row in range(self.m):
         for col in range(row + 1, self.m):
             if self.S[row, col] > self.threshold:
                 edges.append((row, col))
     if edges != self.edges or not self.is_trained:
         self.c_tree = get_clique_tree(range(self.m), edges)
         self.edges = edges
Example #2
0
 def _create_tree(self) -> None:
     nodes = range(self.m)
     self.c_tree = get_clique_tree(nodes, [])
Example #3
0
 def _create_tree(self) -> None:
     nodes = range(self.m)
     self.c_tree = get_clique_tree(nodes, [])
     self._calculate_clique_data()