Class: Networkr::Tracker
- Inherits:
-
Object
- Object
- Networkr::Tracker
- Defined in:
- lib/networkr/algorithms/kosaraju.rb
Instance Attribute Summary collapse
-
#current_source ⇒ Object
Returns the value of attribute current_source.
-
#current_time ⇒ Object
Returns the value of attribute current_time.
-
#explored ⇒ Object
Returns the value of attribute explored.
-
#finishing_times ⇒ Object
Returns the value of attribute finishing_times.
-
#leaders ⇒ Object
Returns the value of attribute leaders.
Instance Method Summary collapse
-
#initialize ⇒ Tracker
constructor
A new instance of Tracker.
Constructor Details
#initialize ⇒ Tracker
Returns a new instance of Tracker.
94 95 96 97 98 99 100 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 94 def initialize @explored = Set.new @current_source = nil @leaders = {} @current_time = 0 @finishing_times = {} end |
Instance Attribute Details
#current_source ⇒ Object
Returns the value of attribute current_source.
91 92 93 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 91 def current_source @current_source end |
#current_time ⇒ Object
Returns the value of attribute current_time.
91 92 93 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 91 def current_time @current_time end |
#explored ⇒ Object
Returns the value of attribute explored.
91 92 93 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 91 def explored @explored end |
#finishing_times ⇒ Object
Returns the value of attribute finishing_times.
91 92 93 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 91 def finishing_times @finishing_times end |
#leaders ⇒ Object
Returns the value of attribute leaders.
91 92 93 |
# File 'lib/networkr/algorithms/kosaraju.rb', line 91 def leaders @leaders end |