Method: NetworkX::UnionFind#weights

Defined in:
lib/networkx/auxillary_functions/union_find.rb,
lib/networkx/auxillary_functions/union_find.rb

#weightsHash{ Object => Integer }

Return weight of each element

Returns:

  • (Hash{ Object => Integer })

    the current value of weights



11
12
13
# File 'lib/networkx/auxillary_functions/union_find.rb', line 11

def weights
  @weights
end