I would like to plot lines on a simple x,y
graph to display in a JApplet using JGraphT. The examples I found were not very helpful. Could someone please point me to a few simple JGraphT examples?
To visualize a JGraphT graph you just need to initialize JGraph via that adapter. Example code: // create a JGraphT graph ListenableGraph g = new ListenableDirectedGraph( DefaultEdge. class ); // create a visualization using JGraph, via the adapter JGraph jgraph = new JGraph( new JGraphModelAdapter( g ) );
here an example I hope will help jgrapht
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With