how to organize graph nodes to draw using java 2d -


i created program builds , draw nested cyclic graphs (with undirected edges) in jframe using java awt.

the problem if position of nodes not explicitly specified, or created @ random, graph becomes messy, edges crossing , vertex colliding.

i implement algorithm repositioning better distribute nodes, in more homogeneous , clean way.

can me?

you may want @ graphviz, program (render graphs). has java api, integrate program, , it's open-source, if you'd rather implement solution yourself, perhaps code provide inspiration (just remember check license!)

in addition, website has a list of resources pertaining graph drawing theory, sounds need.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -