Class: GraphMatching::Algorithm::MatchingAlgorithm
- Inherits:
-
Object
- Object
- GraphMatching::Algorithm::MatchingAlgorithm
- Defined in:
- lib/graph_matching/algorithm/matching_algorithm.rb
Overview
All matching algorithms operate on a graph, hence the common constructor.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#g ⇒ Object
readonly
Returns the value of attribute g.
Instance Method Summary collapse
- #assert(obj) ⇒ Object
-
#initialize(graph) ⇒ MatchingAlgorithm
constructor
A new instance of MatchingAlgorithm.
Constructor Details
#initialize(graph) ⇒ MatchingAlgorithm
Returns a new instance of MatchingAlgorithm.
12 13 14 |
# File 'lib/graph_matching/algorithm/matching_algorithm.rb', line 12 def initialize(graph) @g = graph end |
Instance Attribute Details
#g ⇒ Object (readonly)
Returns the value of attribute g.
10 11 12 |
# File 'lib/graph_matching/algorithm/matching_algorithm.rb', line 10 def g @g end |