Class: YaGraph::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/yagraphlib.rb

Direct Known Subclasses

Edge, Graph, Node

Instance Method Summary collapse

Instance Method Details

#random_idObject



35
36
37
# File 'lib/yagraphlib.rb', line 35

def random_id()
  (0...16).map { (65 + rand(26)).chr }.join
end

#to_graphviz(out) ⇒ Object



26
# File 'lib/yagraphlib.rb', line 26

def to_graphviz(out) "" end

#uidObject



31
32
33
# File 'lib/yagraphlib.rb', line 31

def uid()
  @uid ||= random_id()
end