Skip to content

使用ssp、wcc等算法时,边必须带权重吗? #2577

@xglreal

Description

@xglreal

import graphscope
from graphscope.dataset import load_p2p_network
sess = graphscope.session(cluster_type="hosts", mode="eager")
g = load_p2p_network(sess)
pg = g.project(vertices={"host": ["id"]}, edges={"connect": ["dist"]})
c = graphscope.hits(pg, tolerance=0.01, max_round=10, normalized=True)
sess.close()

必须要有dist属性吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions