Class: NetworkX::Level

Inherits:
Object
  • Object
show all
Defined in:
lib/networkx/flow/utils.rb

Overview

Helper class for preflow push algorithm

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLevel

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

#activeObject (readonly)

Returns the value of attribute active.



27
28
29
# File 'lib/networkx/flow/utils.rb', line 27

def active
  @active
end

#inactiveObject (readonly)

Returns the value of attribute inactive.



27
28
29
# File 'lib/networkx/flow/utils.rb', line 27

def inactive
  @inactive
end