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 = " \#{number_of_nodes} \#{number_of_edges}\n \#{edges.map { |edge| edge.join(' ') }.join(\"\\n\")}\n OUTPUT\n puts output\nend\n" |