Given a collection of vertices $V$ and a collection of edges $E \subseteq V\times V$, is there an algorithm or program that will allow you to draw a nice graph? The placing of the vertices is very important, but I don't know how to determine where they should go. I'm hoping there is a program that will take $V$ and $E$ as inputs and will then generate a nice looking graph.
2026-04-01 03:41:18.1775014878
On
On
Drawing graphs (vertices and edges) with or without technology
368 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
Probably all programming language have at least on library for drawing graphs. In R and Python iGraph implement many different drawing algorithms.
If you prefer userend software I usually use cytoscape or gephi.
Anyhow I fear your question is way too much general. What do you mean with "beautiful"? How many edges and nodes your graphs have? What kind of data they represent?
0
On
Consider GraphViz, a quite complete package for graphing graphs. It tries to position vertices so as to minimize edge crossings, and in general give a "nice looking" graph. It handles several different forms, and handles graphs with thousands of vertices.
There is linear time algorithm which will draw planar graph. It will put vertices on some lattice points of not so big grid and edges will be line segments if I remeber it correctly (use google). It is pretty nice drawing.
Biggest question is what is your idea of "nice graph drawing" I doubt there is algorithm for aesthetics.
I like graphthing for drawing graphs it can find some basic graph properties for you, but you have to place vertices yourself.
There might be other programms, some of them might allow scripting.