Class Vertex

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Vertex>

    public class Vertex
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Vertex>
    A GraphSON vertex, with its incident edges and properties
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.pg.graphson.syntax.Vertex type.
      • ID

        public static final Name ID
        Name of the hydra.pg.graphson.syntax.Vertex.id field.
      • LABEL

        public static final Name LABEL
        Name of the hydra.pg.graphson.syntax.Vertex.label field.
      • IN_EDGES

        public static final Name IN_EDGES
        Name of the hydra.pg.graphson.syntax.Vertex.inEdges field.
      • OUT_EDGES

        public static final Name OUT_EDGES
        Name of the hydra.pg.graphson.syntax.Vertex.outEdges field.
      • PROPERTIES

        public static final Name PROPERTIES
        Name of the hydra.pg.graphson.syntax.Vertex.properties field.
      • id

        public final Value id
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Vertex other)
        Specified by:
        compareTo in interface java.lang.Comparable<Vertex>
      • withId

        public Vertex withId​(Value id)
        Returns a copy of this Vertex with id replaced.
      • withOutEdges

        public Vertex withOutEdges​(java.util.Map<EdgeLabel,​java.util.List<AdjacentEdge>> outEdges)
        Returns a copy of this Vertex with outEdges replaced.