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

Methods

-   <<   >   >>   []   []=   each_attribut   id   index   name   new   root_graph   set  

Included Modules

Constants

Public Class methods

Create a new node

In:

  • xNodeName : ID 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

Calls block once for each attribut of the node, passing the name and value to the block as a two-element array.

If global is set to false, the block does not receive the attributs set globally

Get the node ID

Return the node index

Get the node ID

Return the root graph

Set node attributs

Example :

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

[Validate]