//*/
// As one RDF graph dataset
List<List<Statement>> rdfTriples2 = createMoleculeRDFGraphs(graphs, false);
RDFDataSet ts = new RDFSingleDataSet();
for (List<Statement> trips : rdfTriples2) {
ts.addStatements(trips);
}
List<Resource> instances = new ArrayList<Resource>();
List<Statement> is = ts.getStatementsFromStrings(null, RDF.TYPE.stringValue(), GraphUtils.NAMESPACE + "Molecule");
for (Statement stmt : is) {
instances.add(stmt.getSubject());
}
DTGraph<String,String> sGraph = org.nodes.data.RDF.createDirectedGraph(ts.getStatements(null, null, null, false), null, null);
List<DTNode<String,String>> hubs = SlashBurn.getHubs(sGraph, 2, true);
// (int) Math.round(0.05 * sGraph.nodes().size())
Comparator<Node<String>> comp2 = new DegreeComparator<String>();