@Override public int hashCode() { if (hasher == null) { hasher = new MurmurHash(HASH_SEED); } return hasher.reset() .hash(getVertexId0().hashCode()) .hash(degree.getValue()) .hash(triangleCount.getValue()) .hash(); } }
@Override public Tuple2<GradoopId, Double> map( LocalClusteringCoefficient.Result<GradoopId> result) throws Exception { double value = result.getLocalClusteringCoefficientScore(); if (Double.isNaN(value)) { value = 0.0; } return Tuple2.of(result.getVertexId0(), value); } }
@Override public Tuple2<GradoopId, Double> map( LocalClusteringCoefficient.Result<GradoopId> result) throws Exception { double value = result.getLocalClusteringCoefficientScore(); if (Double.isNaN(value)) { value = 0.0; } return Tuple2.of(result.getVertexId0(), value); } }
@Override public int hashCode() { if (hasher == null) { hasher = new MurmurHash(HASH_SEED); } return hasher.reset() .hash(getVertexId0().hashCode()) .hash(degree.getValue()) .hash(triangleCount.getValue()) .hash(); } }
/** * Format values into a human-readable string. * * @return verbose string */ @Override public String toPrintableString() { return "Vertex ID: " + getVertexId0() + ", vertex degree: " + degree + ", triangle count: " + triangleCount + ", local clustering coefficient: " + getLocalClusteringCoefficientScore(); }
/** * Format values into a human-readable string. * * @return verbose string */ @Override public String toPrintableString() { return "Vertex ID: " + getVertexId0() + ", vertex degree: " + degree + ", triangle count: " + triangleCount + ", local clustering coefficient: " + getLocalClusteringCoefficientScore(); }
@Override public String toString() { return "(" + getVertexId0() + "," + degree + "," + triangleCount + ")"; }
/** * Format values into a human-readable string. * * @return verbose string */ public String toPrintableString() { return "Vertex ID: " + getVertexId0() + ", vertex degree: " + getDegree() + ", triangle count: " + getTriangleCount() + ", local clustering coefficient: " + getLocalClusteringCoefficientScore(); }
@Override public int hashCode() { if (hasher == null) { hasher = new MurmurHash(HASH_SEED); } return hasher.reset() .hash(getVertexId0().hashCode()) .hash(degree.getValue()) .hash(triangleCount.getValue()) .hash(); } }
@Override public String toString() { return "(" + getVertexId0() + "," + degree + "," + triangleCount + ")"; }
@Override public String toString() { return "(" + getVertexId0() + "," + degree + "," + triangleCount + ")"; }
/** * Format values into a human-readable string. * * @return verbose string */ @Override public String toPrintableString() { return "Vertex ID: " + getVertexId0() + ", vertex degree: " + degree + ", triangle count: " + triangleCount + ", local clustering coefficient: " + getLocalClusteringCoefficientScore(); }