Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CALL gds.louvain.write.estimate(
$dependencies_projection + '-without-empty', {
tolerance: 0.00001,
relationshipWeightProperty: $dependencies_projection_weight_property,
writeProperty: 'louvainCommunityId',
writeProperty: $dependencies_projection_write_property,
includeIntermediateCommunities: true
})
YIELD nodeCount
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Community Detection Louvain Mutate

CALL gds.louvain.mutate(
$dependencies_projection + '-without-empty', {
tolerance: 0.00001,
consecutiveIds: NOT toBoolean($dependencies_include_intermediate_communities),
includeIntermediateCommunities: toBoolean($dependencies_include_intermediate_communities),
relationshipWeightProperty: $dependencies_projection_weight_property,
mutateProperty: $dependencies_projection_write_property
})
YIELD communityCount
,nodePropertiesWritten
,ranLevels
,modularity
,modularities
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,communityDistribution
RETURN communityCount
,nodePropertiesWritten
,ranLevels
,modularity
,modularities
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,communityDistribution.min
,communityDistribution.mean
,communityDistribution.max
,communityDistribution.p50
,communityDistribution.p75
,communityDistribution.p90
,communityDistribution.p95
,communityDistribution.p99
,communityDistribution.p999
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Community Detection Stream Intermediate Mutated for hierarchical algorithmns (Louvain, Leiden)

CALL gds.graph.nodeProperty.stream(
$dependencies_projection + '-without-empty'
,$dependencies_projection_write_property
)
YIELD nodeId, propertyValue
WITH gds.util.asNode(nodeId) AS member
,propertyValue AS intermediateCommunityIds
WITH member
,intermediateCommunityIds
,coalesce(member.fqn, member.fileName, member.name) AS memberName
WITH intermediateCommunityIds
,count(DISTINCT member) AS memberCount
,collect(DISTINCT memberName) AS memberNames
RETURN intermediateCommunityIds[0] AS firstCommunityId
,last(intermediateCommunityIds) AS communityId
,intermediateCommunityIds
,memberCount
,memberNames
ORDER BY memberCount DESC, communityId ASC

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//Community Detection Louvain Write intermediateLouvainCommunityId
//Community Detection Louvain Write communityLouvainIntermediateIds

CALL gds.louvain.write(
$dependencies_projection + '-without-empty', {
tolerance: 0.00001,
includeIntermediateCommunities: true,
relationshipWeightProperty: $dependencies_projection_weight_property,
writeProperty: 'intermediateLouvainCommunityId'
writeProperty: 'communityLouvainIntermediateIds'
})
YIELD preProcessingMillis
,computeMillis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//Community Detection Louvain write node property louvainCommunityId
//Community Detection Louvain write node property communityLouvainId

CALL gds.louvain.write(
$dependencies_projection + '-without-empty', {
tolerance: 0.00001,
consecutiveIds: true,
relationshipWeightProperty: $dependencies_projection_weight_property,
writeProperty: 'louvainCommunityId'
writeProperty: 'communityLouvainId'
})
YIELD preProcessingMillis
,computeMillis
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CALL gds.beta.leiden.write.estimate(
tolerance: 0.0000001,
consecutiveIds: true,
relationshipWeightProperty: $dependencies_projection_weight_property,
writeProperty: 'leidenCommunityId'
writeProperty: $dependencies_projection_write_property
})
YIELD nodeCount
,relationshipCount
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Community Detection Leiden Mutate

CALL gds.leiden.mutate(
$dependencies_projection + '-without-empty', {
tolerance: 0.00001,
consecutiveIds: NOT toBoolean($dependencies_include_intermediate_communities),
includeIntermediateCommunities: toBoolean($dependencies_include_intermediate_communities),
relationshipWeightProperty: $dependencies_projection_weight_property,
mutateProperty: $dependencies_projection_write_property
})
YIELD communityCount
,nodePropertiesWritten
,ranLevels
,modularity
,modularities
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,communityDistribution
RETURN communityCount
,nodePropertiesWritten
,ranLevels
,modularity
,modularities
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,communityDistribution.min
,communityDistribution.mean
,communityDistribution.max
,communityDistribution.p50
,communityDistribution.p75
,communityDistribution.p90
,communityDistribution.p95
,communityDistribution.p99
,communityDistribution.p999
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Community Detection Leiden Write property leidenCommunityId
//Community Detection Leiden Write property communityLeidenId

CALL gds.beta.leiden.write(
$dependencies_projection + '-without-empty', {
Expand All @@ -7,7 +7,7 @@ CALL gds.beta.leiden.write(
tolerance: 0.0000001,
consecutiveIds: true,
relationshipWeightProperty: $dependencies_projection_weight_property,
writeProperty: 'leidenCommunityId'
writeProperty: 'communityLeidenId'
})
YIELD preProcessingMillis
,computeMillis
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

CALL gds.labelPropagation.write.estimate(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property,
consecutiveIds: true,
writeProperty: 'labelPropagationCommunityId'
relationshipWeightProperty: $dependencies_projection_weight_property
,writeProperty: $dependencies_projection_write_property
,consecutiveIds: true
})
YIELD requiredMemory
,nodeCount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

CALL gds.wcc.stats(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property,
consecutiveIds: true
relationshipWeightProperty: $dependencies_projection_weight_property
,consecutiveIds: true
})
YIELD componentCount
,preProcessingMillis
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Community Detection Weakly Connected Components Mutate

CALL gds.wcc.mutate(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property
,mutateProperty: $dependencies_projection_write_property
,consecutiveIds: true
})
YIELD componentCount
,nodePropertiesWritten
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,componentDistribution
RETURN componentCount
,nodePropertiesWritten
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,componentDistribution.min
,componentDistribution.mean
,componentDistribution.max
,componentDistribution.p50
,componentDistribution.p75
,componentDistribution.p90
,componentDistribution.p95
,componentDistribution.p99
,componentDistribution.p999

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Community Detection Weakly Connected Components write node property weaklyConnectedComponentId
// Community Detection Weakly Connected Components write node property communityWeaklyConnectedComponentId

CALL gds.wcc.write(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property
,consecutiveIds: true
,writeProperty: 'weaklyConnectedComponentId'
,writeProperty: 'communityWeaklyConnectedComponentId'
})
YIELD componentCount
,preProcessingMillis
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
CALL gds.labelPropagation.write.estimate(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property
,writeProperty: $dependencies_projection_write_property
,consecutiveIds: true
,writeProperty: 'labelPropagationCommunityId'
})
YIELD requiredMemory
,nodeCount
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Community Detection Label Propagation Mutate

CALL gds.labelPropagation.mutate(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property
,mutateProperty: $dependencies_projection_write_property
,consecutiveIds: true
})
YIELD ranIterations
,didConverge
,communityCount
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,nodePropertiesWritten
,communityDistribution
RETURN ranIterations
,didConverge
,communityCount
,preProcessingMillis
,computeMillis
,mutateMillis
,postProcessingMillis
,nodePropertiesWritten
,communityDistribution.min
,communityDistribution.mean
,communityDistribution.max
,communityDistribution.p50
,communityDistribution.p75
,communityDistribution.p90
,communityDistribution.p95
,communityDistribution.p99
,communityDistribution.p999
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Community Detection Label Propagation write node property labelPropagationCommunityId
// Community Detection Label Propagation write node property communityLabelPropagationId

CALL gds.labelPropagation.write(
$dependencies_projection + '-without-empty', {
relationshipWeightProperty: $dependencies_projection_weight_property
,consecutiveIds: true
,writeProperty: 'labelPropagationCommunityId'
,writeProperty: 'communityLabelPropagationId'
})
YIELD ranIterations
,didConverge
Expand Down

This file was deleted.

Loading