SPeCS Packages Documentation
    Preparing search index...

    A node statement in a dot graph.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    attrList: Record<string, string>

    The list of attributes of the node.

    The ID of the node.

    Methods

    • Adds an attribute to the attribute list of the node.

      Parameters

      • key: string

        The key of the attribute.

      • value: string

        The value of the attribute.

      Returns this

      This node statement, for chaining.

    • Adds multiple attributes to the attribute list of the node.

      Parameters

      • attrs: Record<string, string>

        The attributes to add.

      Returns this

      This node statement, for chaining.

    • Converts the node statement to a dot string.

      Parameters

      • _: boolean

        Whether the graph is directed (unused).

      • indentation: number = 0

        The number of spaces to indent.

      Returns string

      The dot string of the node statement.