From f88fb0df37a626e596cbaea10afa40a48d500c57 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Thu, 19 Jun 2025 21:41:51 +0200 Subject: [PATCH 1/3] Fix wrong label for clustering coefficient --- scripts/reports/CommunityCsv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reports/CommunityCsv.sh b/scripts/reports/CommunityCsv.sh index 7fbaa9e90..ced4e6ad2 100755 --- a/scripts/reports/CommunityCsv.sh +++ b/scripts/reports/CommunityCsv.sh @@ -337,7 +337,7 @@ calculateLocalClusteringCoefficient() { local PROJECTION_CYPHER_DIR="${CYPHER_DIR}/Dependencies_Projection" local writePropertyName="dependencies_projection_write_property=communityLocalClusteringCoefficient" - local writeLabelName="dependencies_projection_write_label=MaximumKCut" + local writeLabelName="dependencies_projection_write_label=LocalClusteringCoefficient" # Statistics execute_cypher "${COMMUNITY_DETECTION_CYPHER_DIR}/Community_Detection_10a_LocalClusteringCoefficient_Estimate.cypher" "${@}" "${writePropertyName}" From 5ab421a4b25e07130fd5ecd104f7989cf7c53483 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:00:52 +0200 Subject: [PATCH 2/3] Fix wrong comment about bridges parameters --- scripts/reports/CentralityCsv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/reports/CentralityCsv.sh b/scripts/reports/CentralityCsv.sh index 7c74864ea..cb9315fbd 100755 --- a/scripts/reports/CentralityCsv.sh +++ b/scripts/reports/CentralityCsv.sh @@ -362,9 +362,9 @@ runCentralityAlgorithms() { # # Required Parameters: # - dependencies_projection=... -# Name prefix for the in-memory projection name for dependencies. Example: "package" +# Name prefix for the in-memory projection name for dependencies. Example: "package-centrality" # - dependencies_projection_node=... -# Label of the nodes that will be used for the projection. Example: "centralityPageRank" +# Label of the nodes that will be used for the projection. Example: "Package" # - dependencies_projection_weight_property=... # Name of the node property that contains the dependency weight. Example: "weight" runUndirectedCentralityAlgorithms() { From a5a033362a3143b2dba1fc18084312919b240d42 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Thu, 19 Jun 2025 21:42:44 +0200 Subject: [PATCH 3/3] Fix scaler and use default values of page and article rank --- cypher/Centrality/Centrality_2a_Page_Rank_Estimate.cypher | 3 --- cypher/Centrality/Centrality_2b_Page_Rank_Statistics.cypher | 3 --- cypher/Centrality/Centrality_3c_Page_Rank_Mutate.cypher | 3 --- cypher/Centrality/Centrality_3d_Page_Rank_Stream.cypher | 3 --- cypher/Centrality/Centrality_3e_Page_Rank_Write.cypher | 3 --- cypher/Centrality/Centrality_4a_Article_Rank_Estimate.cypher | 5 +---- .../Centrality/Centrality_4b_Article_Rank_Statistics.cypher | 5 +---- cypher/Centrality/Centrality_4c_Article_Rank_Mutate.cypher | 5 +---- cypher/Centrality/Centrality_4d_Article_Rank_Stream.cypher | 5 +---- cypher/Centrality/Centrality_4e_Article_Rank_Write.cypher | 3 --- 10 files changed, 4 insertions(+), 34 deletions(-) diff --git a/cypher/Centrality/Centrality_2a_Page_Rank_Estimate.cypher b/cypher/Centrality/Centrality_2a_Page_Rank_Estimate.cypher index 1d894a22b..da70128e7 100644 --- a/cypher/Centrality/Centrality_2a_Page_Rank_Estimate.cypher +++ b/cypher/Centrality/Centrality_2a_Page_Rank_Estimate.cypher @@ -4,10 +4,7 @@ CALL gds.pageRank.write.estimate( $dependencies_projection + '-cleaned', { writeProperty: $dependencies_projection_write_property ,maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L1Norm" }) YIELD nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView RETURN nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView \ No newline at end of file diff --git a/cypher/Centrality/Centrality_2b_Page_Rank_Statistics.cypher b/cypher/Centrality/Centrality_2b_Page_Rank_Statistics.cypher index cd2d88900..4fceeb84a 100644 --- a/cypher/Centrality/Centrality_2b_Page_Rank_Statistics.cypher +++ b/cypher/Centrality/Centrality_2b_Page_Rank_Statistics.cypher @@ -3,10 +3,7 @@ CALL gds.pageRank.stats( $dependencies_projection + '-cleaned', { maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L1Norm" }) YIELD ranIterations ,didConverge diff --git a/cypher/Centrality/Centrality_3c_Page_Rank_Mutate.cypher b/cypher/Centrality/Centrality_3c_Page_Rank_Mutate.cypher index 94d11584d..918dedb1c 100644 --- a/cypher/Centrality/Centrality_3c_Page_Rank_Mutate.cypher +++ b/cypher/Centrality/Centrality_3c_Page_Rank_Mutate.cypher @@ -3,9 +3,6 @@ CALL gds.pageRank.mutate( $dependencies_projection + '-cleaned', { maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 - ,scaler: "L2Norm" ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END ,mutateProperty: $dependencies_projection_write_property }) diff --git a/cypher/Centrality/Centrality_3d_Page_Rank_Stream.cypher b/cypher/Centrality/Centrality_3d_Page_Rank_Stream.cypher index 02acb8990..eed181315 100644 --- a/cypher/Centrality/Centrality_3d_Page_Rank_Stream.cypher +++ b/cypher/Centrality/Centrality_3d_Page_Rank_Stream.cypher @@ -3,10 +3,7 @@ CALL gds.pageRank.stream( $dependencies_projection + '-cleaned', { maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L2Norm" }) YIELD nodeId, score WITH gds.util.asNode(nodeId) AS member, score diff --git a/cypher/Centrality/Centrality_3e_Page_Rank_Write.cypher b/cypher/Centrality/Centrality_3e_Page_Rank_Write.cypher index 0591a3d8b..0b7cbdbdb 100644 --- a/cypher/Centrality/Centrality_3e_Page_Rank_Write.cypher +++ b/cypher/Centrality/Centrality_3e_Page_Rank_Write.cypher @@ -3,10 +3,7 @@ CALL gds.pageRank.write( $dependencies_projection + '-cleaned', { maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L2Norm" ,writeProperty: $dependencies_projection_write_property }) YIELD nodePropertiesWritten diff --git a/cypher/Centrality/Centrality_4a_Article_Rank_Estimate.cypher b/cypher/Centrality/Centrality_4a_Article_Rank_Estimate.cypher index 5c926cb58..c24dd2275 100644 --- a/cypher/Centrality/Centrality_4a_Article_Rank_Estimate.cypher +++ b/cypher/Centrality/Centrality_4a_Article_Rank_Estimate.cypher @@ -3,11 +3,8 @@ CALL gds.articleRank.write.estimate( $dependencies_projection + '-cleaned', { writeProperty: $dependencies_projection_write_property - ,maxIterations: 30 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 + ,maxIterations: 50 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L1Norm" }) YIELD nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView RETURN nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView \ No newline at end of file diff --git a/cypher/Centrality/Centrality_4b_Article_Rank_Statistics.cypher b/cypher/Centrality/Centrality_4b_Article_Rank_Statistics.cypher index 80141de9d..f0484d662 100644 --- a/cypher/Centrality/Centrality_4b_Article_Rank_Statistics.cypher +++ b/cypher/Centrality/Centrality_4b_Article_Rank_Statistics.cypher @@ -2,11 +2,8 @@ CALL gds.articleRank.stats( $dependencies_projection + '-cleaned', { - maxIterations: 30 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 + maxIterations: 50 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L1Norm" }) YIELD ranIterations ,didConverge diff --git a/cypher/Centrality/Centrality_4c_Article_Rank_Mutate.cypher b/cypher/Centrality/Centrality_4c_Article_Rank_Mutate.cypher index 443b1e1f1..1bca59e82 100644 --- a/cypher/Centrality/Centrality_4c_Article_Rank_Mutate.cypher +++ b/cypher/Centrality/Centrality_4c_Article_Rank_Mutate.cypher @@ -2,10 +2,7 @@ CALL gds.articleRank.mutate( $dependencies_projection + '-cleaned', { - maxIterations: 30 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 - ,scaler: "L2Norm" + maxIterations: 50 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END ,mutateProperty: $dependencies_projection_write_property }) diff --git a/cypher/Centrality/Centrality_4d_Article_Rank_Stream.cypher b/cypher/Centrality/Centrality_4d_Article_Rank_Stream.cypher index 6ff8e3eb4..7fcf0ce36 100644 --- a/cypher/Centrality/Centrality_4d_Article_Rank_Stream.cypher +++ b/cypher/Centrality/Centrality_4d_Article_Rank_Stream.cypher @@ -2,11 +2,8 @@ CALL gds.articleRank.stream( $dependencies_projection + '-cleaned', { - maxIterations: 30 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 + maxIterations: 50 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L2Norm" }) YIELD nodeId, score WITH gds.util.asNode(nodeId) AS member, score diff --git a/cypher/Centrality/Centrality_4e_Article_Rank_Write.cypher b/cypher/Centrality/Centrality_4e_Article_Rank_Write.cypher index 400941159..c9a2b4b55 100644 --- a/cypher/Centrality/Centrality_4e_Article_Rank_Write.cypher +++ b/cypher/Centrality/Centrality_4e_Article_Rank_Write.cypher @@ -3,10 +3,7 @@ CALL gds.articleRank.write( $dependencies_projection + '-cleaned', { maxIterations: 50 - ,dampingFactor: 0.85 - ,tolerance: 0.00000001 ,relationshipWeightProperty: CASE $dependencies_projection_weight_property WHEN '' THEN null ELSE $dependencies_projection_weight_property END - ,scaler: "L2Norm" ,writeProperty: $dependencies_projection_write_property }) YIELD nodePropertiesWritten