Class GraphViz::Node
In: lib/graphviz/node.rb
Parent: Object

Methods

-   <<   >   >>   []   []=   name   new   set  

Included Modules

Constants

Public Class methods

Create a new node

In:

  • xNodeName : Name of the node
  • oGParrent : Graph

Public Instance methods

-( oNode )

Alias for #<<

Create an edge between the current node and the node oNode

>( oNode )

Alias for #<<

>>( oNode )

Alias for #<<

Get the value of the node attribut xAttrName

Set value xAttrValue to the node attribut xAttrName

Get the node name

Set node attributs

Example :

  n = graph.add_node( ... )
  ...
  n.set { |_n|
    _n.color = "blue"
    _n.fontcolor = "red"
  }

[Validate]