Method: NetworkX::Graph#clear

Defined in:
lib/networkx/graph.rb

#clearObject

Clears the graph

Examples:

graph.clear


271
272
273
274
275
# File 'lib/networkx/graph.rb', line 271

def clear
  @adj.clear
  @nodes.clear
  @graph.clear
end