Package ghidra.service.graph

# Class GraphTypeBuilder

java.lang.Object
ghidra.service.graph.GraphTypeBuilder

public class GraphTypeBuilder extends Object
Builder class for building new `GraphType`s

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GraphTypeBuilder(String name)`
  Create a new builder

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GraphType`
  `build()`
  Builds a new GraphType
  `GraphTypeBuilder`
  `description(String text)`
  Sets the description for the `GraphType`
  `GraphTypeBuilder`
  `edgeType(String type)`
  Defines a new edge type
  `GraphTypeBuilder`
  `vertexType(String type)`
  Defines a new vertex type

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GraphTypeBuilder

    public GraphTypeBuilder(String name)
    Create a new builder
    Parameters:
      `name` - the name of the new `GraphType`

- ## Method Details

  - ### description

    public GraphTypeBuilder description(String text)
    Sets the description for the `GraphType`
    Parameters:
      `text` - the description
    Returns:
      this GraphTypeBuilder

  - ### vertexType

    public GraphTypeBuilder vertexType(String type)
    Defines a new vertex type
    Parameters:
      `type` - a string that names a new vertex type
    Returns:
      this GraphTypeBuilder

  - ### edgeType

    public GraphTypeBuilder edgeType(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