Sha256: f6884df5efeaaf966b6ec057af6c5528379d9fcd34c388d262b52ec9181b7e06
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
#!/usr/bin/env ruby require 'graphshaper' if ARGV.length == 0 || ARGV[0] == "--help" puts " Usage: graphshaper SIZE" else inner_nodes = 20 number_of_nodes = ARGV[0].to_i graph = Graphshaper::UndirectedGraph.without_orphans_with_order_of 20, edge_creation_logger: STDOUT (number_of_nodes - inner_nodes).times do graph.add_vertex do |preferential_attachment| preferential_attachment > rand end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphshaper-0.0.2 | bin/graphshaper |
graphshaper-0.0.1 | bin/graphshaper |