Class: Networkr::Tracker

Inherits:
Object
  • Object
show all
Defined in:
lib/networkr/algorithms/kosaraju.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTracker

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_sourceObject

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_timeObject

Returns the value of attribute current_time.



91
92
93
# File 'lib/networkr/algorithms/kosaraju.rb', line 91

def current_time
  @current_time
end

#exploredObject

Returns the value of attribute explored.



91
92
93
# File 'lib/networkr/algorithms/kosaraju.rb', line 91

def explored
  @explored
end

#finishing_timesObject

Returns the value of attribute finishing_times.



91
92
93
# File 'lib/networkr/algorithms/kosaraju.rb', line 91

def finishing_times
  @finishing_times
end

#leadersObject

Returns the value of attribute leaders.



91
92
93
# File 'lib/networkr/algorithms/kosaraju.rb', line 91

def leaders
  @leaders
end