related questions
- This question goes the opposite way from the conversion I would like: Matrix from graph description
- This question is almost what I want, but the vertex coordinates are manually specified: How to plot a graph from its adjacency matrix (coordinates manually specified)?
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:

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?