Method: NetworkX::Graph#put_graph_x2
- Defined in:
- lib/networkx/others/generators.rb
#put_graph_x2 ⇒ Object
Experimental For debug.
229 230 231 232 233 234 235 |
# File 'lib/networkx/others/generators.rb', line 229 def put_graph_x2 output = <<~"OUTPUT" #{number_of_nodes} #{number_of_edges} #{edges.map { |edge| edge.join(' ') }.join("\n")} OUTPUT puts output end |