One way to represent a dendrogram is to list pairs that contain (n-1) pairs for n elements. Assuming that the left element of the pair is the one whose identifier is stored to indicate all elements in the community, the dendrogram pattern may look like
[[0,1],[2,3],[0,2]]
So, an alternative way to save data that can be stored on each node, at what time step it is combined into another node (along with all the nodes that were previously combined into it).
So, you would add (0: 0) to 1, (1: 2) to 3 and (2: 0) to 2 (timestep: the new "name" node).
edit: Specifically, this could mean joining two integer attributes, for example. 'merge_timestep' and 'merge_into' for each Neo4J node object.
source share