Ejemplo n.º 1
0
def test_mg_louvain_with_edgevals(daskGraphFromDataset):
    # FIXME: daskGraphFromDataset returns a DiGraph, which Louvain is currently
    # accepting. In the future, an MNMG symmeterize will need to be called to
    # create a Graph for Louvain.
    if is_device_version_less_than((7, 0)):
        with pytest.raises(RuntimeError):
            parts, mod = dcg.louvain(daskGraphFromDataset)
    else:
        parts, mod = dcg.louvain(daskGraphFromDataset)

        # FIXME: either call Nx with the same dataset and compare results, or
        # hardcode golden results to compare to.
        print()
        print(parts.compute())
        print(mod)
        print()
Ejemplo n.º 2
0
def test_mg_louvain_with_edgevals(daskGraphFromDataset):
    # FIXME: daskGraphFromDataset returns a DiGraph, which Louvain is currently
    # accepting. In the future, an MNMG symmeterize will need to be called to
    # create a Graph for Louvain.
    parts, mod = dcg.louvain(daskGraphFromDataset)

    # FIXME: either call Nx with the same dataset and compare results, or
    # hadcode golden results to compare to.
    print()
    print(parts.compute())
    print(mod)
    print()