#!/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