System.out.println("Check 3: " + (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
nodearray = nodes.toArray(new Node[]{});
// SET THE EDGES
SparseDoubleMatrix2D Weight = new SparseDoubleMatrix2D(nodearray.length,nodearray.length);
for(Resource res : bscrdf.listSubjects().toSet()){
for(Statement st : res.listProperties().toSet()){
if(relationsandweights.keySet().contains(st.getPredicate().getURI())){
Weight.set(urisandnodes.get(res.getURI()).name, urisandnodes.get(st.getObject().toString()).name, relationsandweights.get(st.getPredicate().getURI()));
}
}
// Weight.set(urisandnodes.get(res.getURI()).name, urisandnodes.get(st.getObject().toString()).name, baseweight);
//}
// for(Statement st : res.listProperties(lowweight).toSet()){
// Weight.set(urisandnodes.get(res.getURI()).name, urisandnodes.get(st.getObject().toString()).name, lowweightnum);
// Weight.set(urisandnodes.get(st.getObject().toString()).name, urisandnodes.get(res.getURI()).name, lowweightnum);
// }
// for(Statement st : res.listProperties(fiveweight).toSet()){
// Weight.set(urisandnodes.get(res.getURI()).name, urisandnodes.get(st.getObject().toString()).name, 5);
// Weight.set(urisandnodes.get(st.getObject().toString()).name, urisandnodes.get(res.getURI()).name, 5);
// }
}
Weight.getNonZeros(rowlist, columnlist, valuelist);
System.out.println(nodearray.length);
System.out.println(rowlist.size());
setComboBoxData(autocompletelist);