I am using prefuse lately to make some visualizations. What I do is I load some information from a database, make a prefuse table instance for them and make a graph based on that information. This works fine.
My question is how can I create the edges for that graph??
I assume I must create another table to hold the edges but i don't know the way to create that thing... Any help appreciated! Thank you!
That's my code for setting up the data for the graph:
Table nodeData = null;
String query1 = "my_select_statement";
try {
nodeData = datasrc.getData(query1);
} catch (DataIOException ex) {
ex.getMessage();
ex.printStackTrace();
}
Graph graph = new Graph(nodeData, true);