-
I use the example dataset of graphscope and use the project method for getting a subgraph->
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think it is an expected error. Moved to discussion. |
Beta Was this translation helpful? Give feedback.
-
@siyuan0322 Any further comment/doc on louvain algorithm? |
Beta Was this translation helpful? Give feedback.
-
the louvain algorithm now only support undirected graph, you can use louvain like: g = sess.g(directed=False)
g = g.add_vertices("/tmp/testingdata/property/p2p-31_property_v_0", label="person")
g = g.add_edges("/tmp/testingdata/property/p2p-31_property_e_0", label="knows")
simple_graph = g.project(vertices={"person": []}, edges={"knows": ["dist"]})
from graphscope import louvain
result_context=louvain(simple_graph) |
Beta Was this translation helpful? Give feedback.
the louvain algorithm now only support undirected graph, you can use louvain like: