visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.
https://visjs.github.io/vis-network/
Apache License 2.0
3k stars 366 forks source link

compare two networks #1625

Open DiSaK74 opened 2 years ago

DiSaK74 commented 2 years ago

Hello everyone, I have to graphically show the differences between two networks, that is, between two identical networks there may be a very small change such as, for example, the relationship between nodeA and nodeB no longer exists in the second network.

My purpose is to paint or somehow highlight that difference and I cannot find in the vis.js documentation if it is possible to do this work.

Do you know if you can compare networks in any way in vis.js?

Skarnivorous commented 2 years ago

You could compare positions. You could do canvas image copy and drawImage with a painting mode that highlights the overlapping areas. If the scales etc. are the same on both networks, getting nodes at positions would be a code exercise.

ObaidAshiq commented 2 months ago

@DiSaK74 were u able to achieve this ?