Java Code Examples for org.apache.tinkerpop.gremlin.structure.util.StringFactory#vertexProgramString()
The following examples show how to use
org.apache.tinkerpop.gremlin.structure.util.StringFactory#vertexProgramString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShortestPathVertexProgram.java From tinkerpop with Apache License 2.0 | 6 votes |
@Override public String toString() { final List<String> options = new ArrayList<>(); final Function<String, String> shortName = name -> name.substring(name.lastIndexOf(".") + 1); if (!this.sourceVertexFilterTraversal.equals(DEFAULT_VERTEX_FILTER_TRAVERSAL)) { options.add(shortName.apply(SOURCE_VERTEX_FILTER) + "=" + this.sourceVertexFilterTraversal.get()); } if (!this.targetVertexFilterTraversal.equals(DEFAULT_VERTEX_FILTER_TRAVERSAL)) { options.add(shortName.apply(TARGET_VERTEX_FILTER) + "=" + this.targetVertexFilterTraversal.get()); } if (!this.edgeTraversal.equals(DEFAULT_EDGE_TRAVERSAL)) { options.add(shortName.apply(EDGE_TRAVERSAL) + "=" + this.edgeTraversal.get()); } if (!this.distanceTraversal.equals(DEFAULT_DISTANCE_TRAVERSAL)) { options.add(shortName.apply(DISTANCE_TRAVERSAL) + "=" + this.distanceTraversal.get()); } options.add(shortName.apply(INCLUDE_EDGES) + "=" + this.includeEdges); return StringFactory.vertexProgramString(this, String.join(", ", options)); }
Example 2
Source File: ShortestDistanceVertexProgram.java From titan1withtp3.1 with Apache License 2.0 | 4 votes |
@Override public String toString() { return StringFactory.vertexProgramString(this, "maxDepth=" + maxDepth); }
Example 3
Source File: PageRankVertexProgram.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public String toString() { return StringFactory.vertexProgramString(this, "alpha=" + this.alpha + ", epsilon=" + this.epsilon + ", iterations=" + this.maxIterations); }
Example 4
Source File: PeerPressureVertexProgram.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public String toString() { return StringFactory.vertexProgramString(this, "distributeVote=" + this.distributeVote + ", maxIterations=" + this.maxIterations); }
Example 5
Source File: TraversalVertexProgram.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public String toString() { final String traversalString = this.traversal.get().toString().substring(1); return StringFactory.vertexProgramString(this, traversalString.substring(0, traversalString.length() - 1)); }
Example 6
Source File: CloneVertexProgram.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public String toString() { return StringFactory.vertexProgramString(this); }