@@ -13,15 +13,19 @@ nebula-algorithm is a Spark Application based on [GraphX](https://spark.apache.o
1313| Louvain | community digging, hierarchical clustering|
1414| KCore | community detection, financial risk control|
1515| LabelPropagation | community detection, consultation propagation, advertising recommendation|
16+ | Hanp | community detection, consultation propagation|
1617| ConnectedComponent | community detection, isolated island detection|
1718| StronglyConnectedComponent| community detection|
1819| ShortestPath | path plan, network plan|
1920| TriangleCount | network structure analysis|
2021| GraphTriangleCount | network structure and tightness analysis|
2122| BetweennessCentrality | important node digging, node influence calculation|
23+ | ClosenessCentrality | important node digging, node influence calculation|
2224| DegreeStatic | graph structure analysis|
2325| ClusteringCoefficient | recommended, telecom fraud analysis|
26+ | Jaccard | similarity calculation, recommendation|
2427| BFS | sequence traversal, Shortest path plan|
28+ | Node2Vec | graph machine learning, recommendation|
2529
2630
2731You could submit the entire spark application or invoke algorithms in ` lib ` library to apply graph algorithms for DataFrame.
@@ -33,13 +37,13 @@ You could submit the entire spark application or invoke algorithms in `lib` libr
3337 $ cd nebula-algorithm
3438 $ mvn clean package -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
3539 ```
36- After the above buiding process, the target file `nebula-algorithm-2.0.0 .jar` will be placed under `nebula-algorithm/target`.
40+ After the above buiding process, the target file `nebula-algorithm-3.0-SNAPSHOT .jar` will be placed under `nebula-algorithm/target`.
3741
3842 2. Download from Maven repo
3943
4044 Alternatively, it could be downloaded from the following Maven repo:
4145
42- https://repo1.maven.org/maven2/com/vesoft/nebula-algorithm/2.0.0/
46+ https://repo1.maven.org/maven2/com/vesoft/nebula-algorithm/
4347
4448## Use Nebula Algorithm
4549
@@ -52,7 +56,7 @@ You could submit the entire spark application or invoke algorithms in `lib` libr
5256 * Submit Spark Application
5357
5458 ```
55- ${SPARK_HOME}/bin/spark-submit --master <mode> --class com.vesoft.nebula.algorithm.Main nebula-algorithm-2.0.0 .jar -p application.conf
59+ ${SPARK_HOME}/bin/spark-submit --master <mode> --class com.vesoft.nebula.algorithm.Main nebula-algorithm-3.0—SNAPSHOT .jar -p application.conf
5660 ```
5761
5862 * Limitation
@@ -87,6 +91,27 @@ You could submit the entire spark application or invoke algorithms in `lib` libr
8791 For examples of other algorithms, see [examples](https://github.com/vesoft-inc/nebula-algorithm/tree/master/example/src/main/scala/com/vesoft/nebula/algorithm)
8892 > Note: The first column of DataFrame in the application represents the source vertices, the second represents the target vertices and the third represents edges' weight.
8993
94+ ## Nebula config
95+ If you want to write the algorithm result into Nebula, make sure there is corresponding property name in your tag.
96+ | Algorithm | property name |property type|
97+ |:------------------------:|:-----------------------:|:-----------:|
98+ | pagerank | pagerank |double/string|
99+ | louvain | louvain | int/string |
100+ | kcore | kcore | int/string |
101+ | labelpropagation | lpa | int/string |
102+ | connectedcomponent | cc | int/string |
103+ |stronglyconnectedcomponent| scc | int/string |
104+ | betweenness | betweenness |double/string|
105+ | shortestpath | shortestpath | string |
106+ | degreestatic |degree,inDegree,outDegree| int/string |
107+ | trianglecount | trianglecount | int/string |
108+ | clusteringcoefficient | clustercoefficient |double/string|
109+ | closeness | closeness |double/string|
110+ | hanp | hanp | int/string |
111+ | bfs | bfs | string |
112+ | jaccard | jaccard | string |
113+ | node2vec | node2vec | string |
114+
90115## Version match
91116
92117| Nebula Algorithm Version | Nebula Version |
@@ -95,7 +120,8 @@ You could submit the entire spark application or invoke algorithms in `lib` libr
95120| 2.1.0 | 2.0.0, 2.0.1 |
96121| 2.5.0 | 2.5.0, 2.5.1 |
97122| 2.6.0 | 2.6.0, 2.6.1 |
98- | 2.5-SNAPSHOT | nightly |
123+ | 2.6.1 | 2.6.0, 2.6.1 |
124+ | 3.0-SNAPSHOT | nightly |
99125
100126## Contribute
101127
0 commit comments