jung2 - Visualize MySQL Data using JUNG -


i have pull out data mysql database , have visualize data in network format using jung.

i have connected program mysql database. don't know how extract vertexes database jung. can me this? can use jung visualize mysql data?

this how have extracted vertex , edges data database

string query = "select x, y table1 column= 'r '";         preparedstatement pest = connection.preparestatement(query);         resultset rs = pest.executequery();         while (rs.next()) {             name1[i] = rs.getstring("x");             g.addvertex(name1[i]);                 name4[l] = rs.getstring("y");             system.out.println(name2[l]);             if (name3[k] != null) {                 g.addvertex(name3[k]);              } else                 g.removevertex(name3[k]);             i++;             k++;                         }         (k = 1; k < 20; k++) {              if (name3[k] == null) {                  = 1;                                   i++;                 k++;             } else {                 g.addedge("g", name1[i], name3[k]);             }         }         rs.close();         pest.close(); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -