I’m making a simulation of the thinking and remembering process, and I have various pictures (cow, airplane, orange) that need to be displayed in a mind map-like style on the screen. Each object is connected to three others, as well, and it needs to look like a net.
What algorithm can I use? Also, I’m using JS, but pseudo code or an explanation would be nice too.
Some JavaScript to illustrate.