Methods
- B
- D
- I
Included Modules
Constants
FILENAME | = | "rhino-resource-graph" |
FILETYPE | = | "png" |
Class Public methods
build_graph()
Link
Source: show
# File rhino/rhino/app/resources/rhino/info_graph.rb 23 def self.build_graph 24 RGL::ImplicitGraph.new do |g| 25 # Add every rhino resource 26 g.vertex_iterator { |c| Rhino.resource_classes.each(&c) } 27 28 # If its owned by another resoource, link it 29 g.adjacent_iterator { |v, c| c.call(v.resource_owned_by.to_s.camelize.constantize) if v&.resource_owned_by && !v.global_owner? } 30 31 g.directed = true 32 end 33 end