| Modifier and Type | Method and Description | 
|---|---|
| GraphFilter.Legal | GraphFilter. checkEdgeLegality(Direction direction)Get the legality of a particular edge direction. | 
| GraphFilter.Legal | GraphFilter. checkEdgeLegality(Direction direction,
                 String label)Get the legality of a particular edge direction and label. | 
| Set<String> | GraphFilter. getLegallyPositiveEdgeLabels(Direction direction)For a particular edge directionality, get all the  GraphFilter.Legal.YESorGraphFilter.Legal.MAYBEedge labels. | 
| Modifier and Type | Method and Description | 
|---|---|
| ShortestPathVertexProgram.Builder | ShortestPathVertexProgram.Builder. edgeDirection(Direction direction) | 
| Modifier and Type | Method and Description | 
|---|---|
| default GraphTraversal<S,Vertex> | GraphTraversal. to(Direction direction,
  String... edgeLabels)Map the  Vertexto its adjacent vertices given a direction and edge labels. | 
| default GraphTraversal<S,Edge> | GraphTraversal. toE(Direction direction,
   String... edgeLabels)Map the  Vertexto its incident edges given the direction and edge labels. | 
| default GraphTraversal<S,Vertex> | GraphTraversal. toV(Direction direction)Map the  Edgeto its incident vertices given the direction. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Direction[] | Direction. proper | 
| Modifier and Type | Method and Description | 
|---|---|
| Direction | Direction. opposite()Produce the opposite representation of the current  Directionenum. | 
| static Direction | Direction. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Direction[] | Direction. values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method and Description | 
|---|---|
| Iterator<Edge> | Vertex. edges(Direction direction,
     String... edgeLabels)Gets an  Iteratorof incident edges. | 
| Iterator<Vertex> | Edge. vertices(Direction direction)Retrieve the vertex (or vertices) associated with this edge as defined by the direction. | 
| Iterator<Vertex> | Vertex. vertices(Direction direction,
        String... edgeLabels)Gets an  Iteratorof adjacent vertices. | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex | GraphReader. readVertex(InputStream inputStream,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
          Direction attachEdgesOfThisDirection)Reads a single vertex from an  InputStream. | 
| Iterator<Vertex> | GraphReader. readVertices(InputStream inputStream,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
            Direction attachEdgesOfThisDirection)Reads a set of one or more vertices from an  InputStreamwhich were written byGraphWriter.writeVertices(OutputStream, Iterator). | 
| void | GraphWriter. writeVertex(OutputStream outputStream,
           Vertex v,
           Direction direction)Write a vertex to a stream with its associated edges. | 
| default void | GraphWriter. writeVertices(OutputStream outputStream,
             Iterator<Vertex> vertexIterator,
             Direction direction)Write a list of vertices from a  Traversalto a stream with its associated edges. | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex | GraphMLReader. readVertex(InputStream inputStream,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
          Direction attachEdgesOfThisDirection)This method is not supported for this reader. | 
| Iterator<Vertex> | GraphMLReader. readVertices(InputStream inputStream,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
            Direction attachEdgesOfThisDirection)This method is not supported for this reader. | 
| void | GraphMLWriter. writeVertex(OutputStream outputStream,
           Vertex v,
           Direction direction)This method is not supported for this writer. | 
| void | GraphMLWriter. writeVertices(OutputStream outputStream,
             Iterator<Vertex> vertexIterator,
             Direction direction)This method is not supported for this writer. | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex | GraphSONReader. readVertex(InputStream inputStream,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
          Direction attachEdgesOfThisDirection)Read a  Vertexfrom output generated by any of theGraphSONWriterwriteVertexorwriteVerticesmethods or byGraphSONWriter.writeGraph(OutputStream, Graph). | 
| Iterator<Vertex> | GraphSONReader. readVertices(InputStream inputStream,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
            Direction attachEdgesOfThisDirection)Read  Vertexobjects from output generated by any of theGraphSONWriterwriteVertexorwriteVerticesmethods or byGraphSONWriter.writeGraph(OutputStream, Graph). | 
| void | GraphSONWriter. writeVertex(OutputStream outputStream,
           Vertex v,
           Direction direction)Writes a single  Vertexto stream where edges only from the specified direction are written. | 
| void | GraphSONWriter. writeVertices(OutputStream outputStream,
             Iterator<Vertex> vertexIterator,
             Direction direction)Writes a list of vertices in adjacency list format where vertices are written with edges from both
 directions. | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex | GryoReader. readVertex(InputStream inputStream,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
          Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
          Direction attachEdgesOfThisDirection)Read a  Vertexfrom output generated by any of theGryoWriterwriteVertexorwriteVerticesmethods or byGryoWriter.writeGraph(OutputStream, Graph). | 
| Iterator<Vertex> | GryoReader. readVertices(InputStream inputStream,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Vertex>,Vertex> vertexAttachMethod,
            Function<org.apache.tinkerpop.gremlin.structure.util.Attachable<Edge>,Edge> edgeAttachMethod,
            Direction attachEdgesOfThisDirection)Read  Vertexobjects from output generated by any of theGryoWriterwriteVertexorwriteVerticesmethods or byGryoWriter.writeGraph(OutputStream, Graph). | 
| void | GryoWriter. writeVertex(OutputStream outputStream,
           Vertex v,
           Direction direction)Write a vertex to a stream with its associated edges. | 
| void | GryoWriter. writeVertices(OutputStream outputStream,
             Iterator<Vertex> vertexIterator,
             Direction direction)Write a list of vertices from a  Traversalto a stream with its associated edges. | 
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.