Package org.neo4j.gds.similarity.nodesim
Record Class NodeSimilarityEstimateParameters
java.lang.Object
java.lang.Record
org.neo4j.gds.similarity.nodesim.NodeSimilarityEstimateParameters
public record NodeSimilarityEstimateParameters(int normalizedK, int normalizedN, boolean useComponents, boolean runWCC, boolean computeToGraph)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSimilarityEstimateParameters(int normalizedK, int normalizedN, boolean useComponents, boolean runWCC, boolean computeToGraph) Creates an instance of aNodeSimilarityEstimateParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecomputeToGraphrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenormalizedKrecord component.intReturns the value of thenormalizedNrecord component.booleanrunWCC()Returns the value of therunWCCrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseComponentsrecord component.
-
Constructor Details
-
NodeSimilarityEstimateParameters
public NodeSimilarityEstimateParameters(int normalizedK, int normalizedN, boolean useComponents, boolean runWCC, boolean computeToGraph) Creates an instance of aNodeSimilarityEstimateParametersrecord class.- Parameters:
normalizedK- the value for thenormalizedKrecord componentnormalizedN- the value for thenormalizedNrecord componentuseComponents- the value for theuseComponentsrecord componentrunWCC- the value for therunWCCrecord componentcomputeToGraph- the value for thecomputeToGraphrecord component
-
-
Method Details
-
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 with '=='. -
normalizedK
public int normalizedK()Returns the value of thenormalizedKrecord component.- Returns:
- the value of the
normalizedKrecord component
-
normalizedN
public int normalizedN()Returns the value of thenormalizedNrecord component.- Returns:
- the value of the
normalizedNrecord component
-
useComponents
public boolean useComponents()Returns the value of theuseComponentsrecord component.- Returns:
- the value of the
useComponentsrecord component
-
runWCC
public boolean runWCC()Returns the value of therunWCCrecord component.- Returns:
- the value of the
runWCCrecord component
-
computeToGraph
public boolean computeToGraph()Returns the value of thecomputeToGraphrecord component.- Returns:
- the value of the
computeToGraphrecord component
-