Class: MARS::Rendering::Graph::Subgraph

Inherits:
Object
  • Object
show all
Defined in:
lib/mars/rendering/graph/subgraph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, nodes) ⇒ Subgraph

Returns a new instance of Subgraph.



9
10
11
12
13
# File 'lib/mars/rendering/graph/subgraph.rb', line 9

def initialize(id, name, nodes)
  @id = id
  @name = name
  @nodes = nodes
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/mars/rendering/graph/subgraph.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/mars/rendering/graph/subgraph.rb', line 7

def name
  @name
end

#nodesObject (readonly)

Returns the value of attribute nodes.



7
8
9
# File 'lib/mars/rendering/graph/subgraph.rb', line 7

def nodes
  @nodes
end