class NoSE::Serialize::GraphRepresenter
Represents a graph by its nodes and edges
Public Instance Methods
edges()
click to toggle source
# File lib/nose/serialize.rb, line 88 def edges represented.unique_edges.map do |edge| FieldRepresenter.represent(edge.key).to_hash end end
nodes()
click to toggle source
# File lib/nose/serialize.rb, line 82 def nodes represented.nodes.map { |n| n.entity.name } end