Hacker News new | ask | show | jobs
by cjcampbell 2621 days ago
I’d love to see a write up of how you handled that network diagram scenario. It’s been years since I used Mathematica, and my main use was exploring cryptography and cryptanalysis. That need isn’t there for me these days, but I might jump back in if I had a sense of how to use it to handle general purpose diagramming tasks.
1 comments

It wasn't too bad. If you look up the Mathematica GraphTheory primitives for building diagrams it is pretty simple.

To give an example of a diagram showing love interests you create a variable for each person and set is equal to a picture of them.

Then, you simply create a map that represents each of the relationships like Jerry <-> Alice to show that Jerry and Alice like each other, Jerry->Samantha to show Jerry likes Samantha, but it isn't returned and so forth.

At the end, wrap it all in the command to create the diagram (there are lots of them) and you're done.