6

related questions

goal

I would like to go from either an adjacency matrix or list of edge pairs to a human-readable graph diagram that fits on a page, i.e. as in the example from the first question, from this:

(1, 1)
(1, 2)
(1, 5)
(2, 1)
(2, 3)
(2, 5)
(3, 2)
(3, 4)
(4, 3)
(4, 5)
(4, 6)
(5, 1)
(5, 2)
(5, 4)
(6, 4)

to this:

desired graph

I'm not particular about the formatting, or node placement, apart from general things like color and maybe bounding box--I would just like to keep it entirely contained inside a TeX document (as opposed to relying on an external file from GraphViz etc.).

Is there an existing solution for this? If not, where do I start?

0 Answers0