Skip to content
Snippets Groups Projects
Commit f89c0b0f authored by Sören Henning's avatar Sören Henning
Browse files

move default label to constant

parent e32c2589
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
......@@ -11,6 +11,8 @@ public class BlueprintsExporter {
private final com.tinkerpop.blueprints.Graph exportGraph = new TinkerGraph();
private final Map<Vertex, com.tinkerpop.blueprints.Vertex> mappedVertices = new HashMap<>();
private static final String LABEL_PROPERTY = "label";
public BlueprintsExporter(final Graph graph) {
this.graph = graph;
}
......@@ -41,7 +43,7 @@ public class BlueprintsExporter {
for (final Edge edge : graph.getEdges()) {
final com.tinkerpop.blueprints.Vertex mappedInVertex = mappedVertices.get(edge.getVertex(Direction.IN));
final com.tinkerpop.blueprints.Vertex mappedOutVertex = mappedVertices.get(edge.getVertex(Direction.OUT));
String label = edge.getProperty("label");
String label = edge.getProperty(LABEL_PROPERTY);
if (label == null) {
label = "";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment