Exemple #1
0
def standalone_get_subgraphs(inputs, score_attribute, group, threshold, min_size, max_size):
    flatter = Flatten()
    tcc = ThresholdedConnectedComponents(attribute=score_attribute, more_than=False, shrink_graphs=True,
                                         threshold=threshold,
                                         min_size=min_size,
                                         max_size=max_size)
    for e in flatter.transform(tcc.transform(inputs)):
        yield e