I have to do a job with graphviz. I need to visualize the graphic representation of several trees, but in any case I have to compare two tree to see their differences: something like this, I have tree A and tree B. After create their representation and compare them I need to see only the nodes that don't have in common. Someone told me to use EMF Compare but unfortunately I don't know how to make this plugin accept the extension of graphviz.
Any advice or any other possible solution to face this job?
Regards.
Given two
.dotfiles,a1.dot:... and
a2.dot:... you can find the nodes that are different between them as follows:
I'm using
sedto strip the list of node names for each.dotfile out of theplainoutput fromdot, sorting the nodes into order and then usingdiffto find the differences. This approach doesn't present the differences graphically, but that is a tricky thing to do at the best of times.