module BloomGraph
Public Class Methods
new(opts={:type => :digraph})
click to toggle source
Calls superclass method
# File lib/bud/labeling/bloomgraph.rb, line 43 def initialize(opts={:type => :digraph}) @graph = GraphViz.new(:G, opts) super end
Public Instance Methods
finish(ignore, name, fmt=:pdf)
click to toggle source
# File lib/bud/labeling/bloomgraph.rb, line 26 def finish(ignore, name, fmt=:pdf) it = ignore.to_set tick nodes.to_a.each do |n| unless it.include? n.name.to_sym @graph.add_nodes(n.name, n.meta) end end edges.to_a.each do |e| unless it.include? e.from.to_sym or it.include? e.to.to_sym @graph.add_edges(e.from, e.to, e.meta) end end @graph.output(fmt => name) end