use of com.alibaba.maxgraph.tinkerpop.steps.CreateGraphStep in project GraphScope by alibaba.
the class MaxGraphTraversalSource method createGraph.
public GraphTraversal<Element, Element> createGraph(final String graphName) {
final GraphTraversalSource clone = this.clone();
clone.getBytecode().addStep(CustomSymbols.graph_source);
final GraphTraversal.Admin<Vertex, Vertex> traversal = new DefaultMaxGraphTraversal<>(clone);
return (DefaultMaxGraphTraversal) traversal.addStep(new CreateGraphStep<>(traversal, graphName));
}
Aggregations