Method: NetworkX::DiGraph#nodes

Defined in:
lib/networkx/digraph.rb,
lib/networkx/digraph.rb

#nodes(data: true) ⇒ Hash{ Object => Hash{ Object => Object } } (readonly)

Stores the nodes and their attributes

Returns:

  • (Hash{ Object => Hash{ Object => Object } })

    the current value of nodes



10
11
12
# File 'lib/networkx/digraph.rb', line 10

def nodes
  @nodes
end