apache / incubator-hugegraph-doc

HugeGraph Website and Doc
https://hugegraph.apache.org/
Apache License 2.0
66 stars 100 forks source link

[Enhance]add JobAPI doc for OLAP algorithms in HugeServer #205

Open JackyYangPassion opened 1 year ago

JackyYangPassion commented 1 year ago

Problem Type (问题类型)

None

Your Question (问题描述)

To enable users to quickly apply integrated OLAP algorithms, it is recommended to add a job API to the document RESTful API module and provide instructions for usage.

Environment (环境信息) Server Version: 1.0.0 (Apache Release Version) Backend: MySQL 8.0.32 hugegraph-hubble hugegraph-loader

For example Run LPA Algorithm job

  1. Load demo data into the hugegraph with hugegraph-loader

     bin/hugegraph-loader.sh -g hugegraph -f example/file/struct.json -s example/file/schema.groovy

    image

  2. Post http://localhost:8080/graphs/hugegraph/jobs/algorithm/lpa by PostMan

    image

  3. View the result of the algorithm execution in hugegraph-hubble Task status: image

    Lap algo summary image

    Graph node label detail: image

JackyYangPassion commented 1 year ago

TODO: add AlgorithmAPI to DOC

github-actions[bot] commented 1 year ago

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

moonbaseDelta commented 4 months ago

Hi there,

I got through this to run some computation, but still cant figure out how the results are managed: on few algos they store in vertex property, on other its just calculations.

But take for instance degree_centrality - the results not saved into the graph, but still available through the API. It's useful when we work with smallest subsets around 10-1000 vertices\edges but on fairly large setup - like 10s of billions - I definitely want to tune that storing procedure.

imbajin commented 4 months ago

Hi there,

I got through this to run some computation, but still cant figure out how the results are managed: on few algos they store in vertex property, on other its just calculations.

But take for instance degree_centrality - the results not saved into the graph, but still available through the API. It's useful when we work with smallest subsets around 10-1000 vertices\edges but on fairly large setup - like 10s of billions - I definitely want to tune that storing procedure.

@moonbaseDelta Hi, we support writing back to graph databases or local file/hdfs. You're right, writing back is generally a common requirement (u could also talk to 🤖 dosu in the comment like ↓)

Also, @dosu could u help add more context & information for users to use graph-computer?

dosubot[bot] commented 4 months ago

To manage and store the results of graph computations in HugeGraph, especially for large datasets, you can configure the system to write back results to the graph database or a file using the following options:

Writing Results Back to HugeGraph

You can configure HugeGraph to write computation results back to the graph database. Here are the relevant configuration options:

Writing Results to a File (HDFS)

Alternatively, you can write the results to a file, such as HDFS. Here are the relevant configuration options:

Best Practices

To ensure efficient handling of large datasets, consider the following best practices:

By configuring these options, you can effectively manage and store the results of graph computations in HugeGraph, ensuring efficient handling of large datasets. Additionally, you can refer to the detailed configuration options provided in the HugeGraph documentation for more advanced settings and optimizations [1][2][3].

To continue talking to Dosu, mention @dosu.