DirectedWeightedMultigraph<Node, DefaultLink> graph =
GraphUtil.importJson(getGraphJsonName());
if (type == ModelLearningGraphType.Compact)
this.graphBuilder = new GraphBuilderTopK(ontologyManager, graph);
else
this.graphBuilder = new GraphBuilder(ontologyManager, graph);
this.nodeIdFactory = this.graphBuilder.getNodeIdFactory();
logger.info("loading is done!");
}
if (this.graphBuilder.getGraph() != null) {
logger.info("number of nodes: " + this.graphBuilder.getGraph().vertexSet().size());