Class: NetworkX::Level
- Inherits:
-
Object
- Object
- NetworkX::Level
- Defined in:
- lib/networkx/flow/utils.rb
Overview
Helper class for preflow push algorithm
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#inactive ⇒ Object
readonly
Returns the value of attribute inactive.
Instance Method Summary collapse
-
#initialize ⇒ Level
constructor
A new instance of Level.
Constructor Details
#initialize ⇒ Level
Returns a new instance of Level.
29 30 31 32 |
# File 'lib/networkx/flow/utils.rb', line 29 def initialize @inactive = Set.new @active = Set.new end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
27 28 29 |
# File 'lib/networkx/flow/utils.rb', line 27 def active @active end |
#inactive ⇒ Object (readonly)
Returns the value of attribute inactive.
27 28 29 |
# File 'lib/networkx/flow/utils.rb', line 27 def inactive @inactive end |