Class Vertex

  • All Implemented Interfaces:
    Serializable

    public class Vertex
    extends Object
    implements Serializable
    A generic vertex class which has a label and set of properties. While this class can be used directly in a graph, its main purpose is to act as an intermediary object when reading, writing, and rendering graphs.
    Author:
    David B. Bracewell
    See Also:
    Serialized Form
    • Method Detail

      • builder

        public static Vertex.VertexBuilder builder()
        Builder vertex builder.
        Returns:
        the vertex builder
      • getLabel

        public String getLabel()
        Gets label.
        Returns:
        the label
      • getProperties

        public Map<String,​String> getProperties()
        Gets properties.
        Returns:
        the properties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object