Class GraphTypeBuilder


  • public class GraphTypeBuilder
    extends java.lang.Object
    Builder class for building new GraphTypes
    • Constructor Detail

      • GraphTypeBuilder

        public GraphTypeBuilder​(java.lang.String name)
        Create a new builder
        Parameters:
        name - the name of the new GraphType
    • Method Detail

      • description

        public GraphTypeBuilder description​(java.lang.String text)
        Sets the description for the GraphType
        Parameters:
        text - the description
        Returns:
        this GraphTypeBuilder
      • vertexType

        public GraphTypeBuilder vertexType​(java.lang.String type)
        Defines a new vertex type
        Parameters:
        type - a string that names a new vertex type
        Returns:
        this GraphTypeBuilder
      • edgeType

        public GraphTypeBuilder edgeType​(java.lang.String type)
        Defines a new edge type
        Parameters:
        type - a string that names a new edge type
        Returns:
        this GraphTypeBuilder
      • build

        public GraphType build()
        Builds a new GraphType
        Returns:
        a new GraphType