Top Level Namespace

Defined Under Namespace

Classes: AttributeException, BoolException, ColorException, Dot2Ruby, DoubleException, GraphViz, Hash, Object, RectException, SplineTypeException, String

Constant Summary collapse

IS_JRUBY =
( JRUBY_VERSION ) != nil)
IS_CYGWIN =
((RUBY_PLATFORM =~ /cygwin/) != nil)

Instance Method Summary collapse

Instance Method Details

#digraph(name, options = {}, &block) ⇒ Object

Create a new directed graph



59
60
61
# File 'lib/graphviz/dsl.rb', line 59

def digraph(name, options = {}, &block)
   GraphViz::DSL.new(name, options.merge( { :type => "digraph" } ), &block).graph
end

#graph(name, options = {}, &block) ⇒ Object

Create a new undirected graph



54
55
56
# File 'lib/graphviz/dsl.rb', line 54

def graph(name, options = {}, &block)
   GraphViz::DSL.new(name, options.merge( { :type => "graph" } ), &block).graph
end

#strict(name, options = {}, &block) ⇒ Object

Create a new strict directed graph



64
65
66
# File 'lib/graphviz/dsl.rb', line 64

def strict(name, options = {}, &block)
   GraphViz::DSL.new(name, options.merge( { :type => "strict digraph" } ), &block).graph
end