def _count_graphlets(adj_mat, size, graphlet_array):
    adj_mat = np.array(adj_mat)
    res = np.zeros((1, _number_of_graphlets(size)))
    for subset in itertools.combinations(range(adj_mat.shape[0]), size):
        graphlet = (adj_mat[subset, :])[:, subset]
        res[0][_graphlet_index(graphlet, graphlet_array)] += 1
    # print "returning ", res / sum(sum(res))
    return res / res.sum()
Time axes
dataset/ETHPy150Open gmum/pykernels/pykernels/graph/allgraphlets.py/_count_graphlets--crossover with--dataset/ETHPy150Open bmcfee/librosa/librosa/display.py/__axis_time