Create edges
# File lib/graphviz/dsl.rb, line 31 def e(*args) e = nil last = args.shift while current = args.shift e = @graph.add_edges(last, current) last = current end return e end
Add a new node
# File lib/graphviz/dsl.rb, line 25 def n(name) return @graph.get_node(name) unless @graph.get_node(name.to_s).nil? @graph.add_nodes(name) end
Generate output
# File lib/graphviz/dsl.rb, line 48 def output(options = {}) @graph.output(options) end
Add a subgraph
# File lib/graphviz/dsl.rb, line 42 def subgraph(name, &block) @graph.add_graph(GraphViz::DSL.new(name, { :parent => @graph, :type => @graph.type }, &block).graph) end
Generated with the Darkfish Rdoc Generator 2.