Class | RGL::DOT::Graph |
In: |
lib/rgl/rdot.rb
|
Parent: | Element |
A graph representation. Whether or not it is rendered as directed or undirected depends on which of the programs dot or neato is used to process and render the graph.
Creates a new Graph with the params Hash providing settings for all graph options. The option_list parameter restricts those options to the list of valid names it contains. The exception to this is the elements option which, if specified, must be an Enumerable containing a list of nodes, edges, and/or subgraphs.
Calls block once for each node, edge, or subgraph contained by this graph, passing the node, edge, or subgraph to the block.