docs/algo/sona/weighted_hindex_en.md
weighted H-Index calculates the h-index value for each node in a undirected weighted graph, the detailed formula can be referred to page 51 of Vital nodes identification in complex networks. The h-index value is usually used to represent the importance of a vertex.
srcId | dstIdnodeId | hindex | gindex | windexDISK_ONLY/MEMORY_ONLY/MEMORY_AND_DISKinput=hdfs://my-hdfs/data
output=hdfs://my-hdfs/output
source ./spark-on-angel-env.sh
$SPARK_HOME/bin/spark-submit \
--master yarn-cluster\
--conf spark.ps.instances=1 \
--conf spark.ps.cores=1 \
--conf spark.ps.jars=$SONA_ANGEL_JARS \
--conf spark.ps.memory=10g \
--name "whindex angel" \
--jars $SONA_SPARK_JARS \
--driver-memory 5g \
--num-executors 1 \
--executor-cores 4 \
--executor-memory 10g \
--class org.apache.spark.angel.examples.graph.WeightedHIndexExample \
../lib/spark-on-angel-examples-3.3.0.jar
input:$input output:$output sep:tab storageLevel:MEMORY_ONLY isWeighted:true \
partitionNum:4 psPartitionNum:1