def METHOD_NAME(G: Any, ascending: bool = True) -> Tensor:
    import networkx.algorithms as A
    property_values = torch.tensor(list(A.clustering(G).values()))
    property_values *= -1 if ascending else 1
    return property_values