Package org.neo4j.gds.closeness
Record Class ClosenessCentralityResult
java.lang.Object
java.lang.Record
org.neo4j.gds.closeness.ClosenessCentralityResult
- All Implemented Interfaces:
CentralityAlgorithmResult
public record ClosenessCentralityResult(org.neo4j.gds.collections.ha.HugeDoubleArray centralities)
extends Record
implements CentralityAlgorithmResult
-
Constructor Summary
ConstructorsConstructorDescriptionClosenessCentralityResult
(org.neo4j.gds.collections.ha.HugeDoubleArray centralities) Creates an instance of aClosenessCentralityResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.gds.collections.ha.HugeDoubleArray
Returns the value of thecentralities
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.org.neo4j.gds.api.properties.nodes.NodePropertyValues
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ClosenessCentralityResult
public ClosenessCentralityResult(org.neo4j.gds.collections.ha.HugeDoubleArray centralities) Creates an instance of aClosenessCentralityResult
record class.- Parameters:
centralities
- the value for thecentralities
record component
-
-
Method Details
-
nodePropertyValues
public org.neo4j.gds.api.properties.nodes.NodePropertyValues nodePropertyValues()- Specified by:
nodePropertyValues
in interfaceCentralityAlgorithmResult
-
centralityScoreProvider
- Specified by:
centralityScoreProvider
in interfaceCentralityAlgorithmResult
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
centralities
public org.neo4j.gds.collections.ha.HugeDoubleArray centralities()Returns the value of thecentralities
record component.- Returns:
- the value of the
centralities
record component
-