Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether to support custom edge weights #75

Closed
godlovefei opened this issue Apr 23, 2023 · 3 comments
Closed

Whether to support custom edge weights #75

godlovefei opened this issue Apr 23, 2023 · 3 comments
Labels
type/question Type: question about the product

Comments

@godlovefei
Copy link

godlovefei commented Apr 23, 2023

Does NebulaGraph-Algorithm not support custom edge weights for graph calculations?

There is a column of _rank in the data currently read from nebula-graphx. I want to use _rank as my weight data, but I found that
The initialization of pagerank in the org.apache.spark.graphx.lib.PageRank source code does not use this _rank value at all
image

image

Should I need to pass the _rank field to customize the weight of the edge?

@wey-gu
Copy link
Contributor

wey-gu commented Apr 24, 2023

Dear @godlovefei , the _rank refer to the NebulaGraph rank for edge, not a normal property named rank.

@Nicole00 is there any way to leverage weight other than the _rank of the edge for now?

@godlovefei
Copy link
Author

Dear @godlovefei , the _rank refer to the NebulaGraph rank for edge, not a normal property named rank.

@Nicole00 is there any way to leverage weight other than the _rank of the edge for now?

No other way has been found yet, because the weight of the edge is initialized in org.apache.spark.graphx.lib.PageRank, but I saw that _rank can be used as an edge in the nebula-algorithm algorithm package weights are used. However, as far as the current situation is concerned, this approach does not seem to work.
image

@QingZ11 QingZ11 added the type/question Type: question about the product label Oct 23, 2023
@Nicole00
Copy link
Contributor

Nicole00 commented Dec 6, 2023

The Algorithm supports weight for edge, but for Pagerank algo, the weight is uselss.

@QingZ11 QingZ11 closed this as completed Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

4 participants