Top Level Namespace

Defined Under Namespace

Classes: Cache, DepAnalyzer, FreebsdAnalyzer, Graph, Hash, HomebrewAnalyzer, MacportsAnalyzer, RakeAnalyzer, RubygemsAnalyzer, Set

Instance Method Summary collapse

Instance Method Details

#digraph(name = nil, &block) ⇒ Object

Convenience method to create a new graph. Used for DSL-style:

g = digraph do
  edge "a", "b", "c"
end


499
500
501
# File 'lib/graph.rb', line 499

def digraph name = nil, &block
  Graph.new name, &block
end