def _substructures(self, idx):
        children = self._children
        result = []
        todo = [idx]

        while todo:
            result.append(todo.pop())
            todo.extend(children[result[-1]])
        return np.array(result, dtype=np.int)
Return an array of all substructure indices of a given index.
dataset/ETHPy150Open glue-viz/glue/glue/plugins/dendro_viewer/client.py/DendroClient._substructures