Package org.neo4j.gds.leiden
Record Class LeidenResult
java.lang.Object
java.lang.Record
org.neo4j.gds.leiden.LeidenResult
public record LeidenResult(org.neo4j.gds.collections.ha.HugeLongArray communities, int ranLevels, boolean didConverge, @Nullable LeidenDendrogramManager dendrogramManager, double[] modularities, double modularity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLeidenResult
(org.neo4j.gds.collections.ha.HugeLongArray communities, int ranLevels, boolean didConverge, @Nullable LeidenDendrogramManager dendrogramManager, double[] modularities, double modularity) Creates an instance of aLeidenResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.gds.collections.ha.HugeLongArray
Returns the value of thecommunities
record component.@Nullable LeidenDendrogramManager
Returns the value of thedendrogramManager
record component.boolean
Returns the value of thedidConverge
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long[]
intermediateCommunities
(long nodeId) double[]
Returns the value of themodularities
record component.double
Returns the value of themodularity
record component.int
Returns the value of theranLevels
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LeidenResult
public LeidenResult(org.neo4j.gds.collections.ha.HugeLongArray communities, int ranLevels, boolean didConverge, @Nullable @Nullable LeidenDendrogramManager dendrogramManager, double[] modularities, double modularity) Creates an instance of aLeidenResult
record class.- Parameters:
communities
- the value for thecommunities
record componentranLevels
- the value for theranLevels
record componentdidConverge
- the value for thedidConverge
record componentdendrogramManager
- the value for thedendrogramManager
record componentmodularities
- the value for themodularities
record componentmodularity
- the value for themodularity
record component
-
-
Method Details
-
intermediateCommunities
public long[] intermediateCommunities(long nodeId) -
communitiesFunction
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
communities
public org.neo4j.gds.collections.ha.HugeLongArray communities()Returns the value of thecommunities
record component.- Returns:
- the value of the
communities
record component
-
ranLevels
public int ranLevels()Returns the value of theranLevels
record component.- Returns:
- the value of the
ranLevels
record component
-
didConverge
public boolean didConverge()Returns the value of thedidConverge
record component.- Returns:
- the value of the
didConverge
record component
-
dendrogramManager
Returns the value of thedendrogramManager
record component.- Returns:
- the value of the
dendrogramManager
record component
-
modularities
public double[] modularities()Returns the value of themodularities
record component.- Returns:
- the value of the
modularities
record component
-
modularity
public double modularity()Returns the value of themodularity
record component.- Returns:
- the value of the
modularity
record component
-