I have a relatively large set of nodes, and I want to find all pairs of nodes that have matching property values, but I don\'t know or care in advance what the property valu
What about the following approach:
java.util.Map containing all properties for a node. Calculate the map's hashCode()Map using the hashCode as key and a set of node.getId() as valuesThis should give you the candidates for being duplicate. Be aware of the hashCode() semantics, there might be nodes with different properties mapping to the same hashCode.