@Override public ObjectNode getPropertiesAsJsonNode() { final ObjectNode node = getIRVertexPropertiesAsJsonNode(); node.put("remainingIteration", maxNumberOfIterations); node.set("DAG", getDAG().asJsonNode()); node.set("dagIncomingEdges", crossingEdgesToJSON(dagIncomingEdges)); node.set("dagOutgoingEdges", crossingEdgesToJSON(dagOutgoingEdges)); final ObjectNode edgeMappings = node.putObject("edgeWithLoopToEdgeWithInternalVertex"); edgeWithLoopToEdgeWithInternalVertex.entrySet() .forEach(entry -> edgeMappings.put(entry.getKey().getId(), entry.getValue().getId())); return node; }
@Override public ObjectNode getPropertiesAsJsonNode() { final ObjectNode node = getIRVertexPropertiesAsJsonNode(); node.put("remainingIteration", maxNumberOfIterations); node.set("DAG", getDAG().asJsonNode()); node.set("dagIncomingEdges", crossingEdgesToJSON(dagIncomingEdges)); node.set("dagOutgoingEdges", crossingEdgesToJSON(dagOutgoingEdges)); final ObjectNode edgeMappings = node.putObject("edgeWithLoopToEdgeWithInternalVertex"); edgeWithLoopToEdgeWithInternalVertex.entrySet() .forEach(entry -> edgeMappings.put(entry.getKey().getId(), entry.getValue().getId())); return node; }