Socket
Book a DemoInstallSign in
Socket

graphshaper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphshaper

0.3.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Graphshaper

Build Status Dependency Status Code Climate

Graphshaper can generate realistic, scale-free graphs of any size. It is tested with MRI Ruby (1.9.2. and 1.9.3) and the 1.9 versions of jRuby and Rubinius.

Installation

Add this line to your application's Gemfile:

gem 'graphshaper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install graphshaper

Usage

The commandline tool expects one argument: The number of vertices you want your generated graph to have. This is how to use it:

graphshaper [options] size

You can use the following options:

  • -a, --arango: Store the graph in a local ArangoDB instance
  • -l, --log: Store the graph in two CSV files for nodes and edges
  • -d, --dot: Store the graph in the dot format
  • -p, --png: Export the graph as a PNG (you need to install graphviz for that – circo is used for the layout)
  • --version: Show version

You can also use the library in your Ruby Code. You can find the documentation here.

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Make your changes – don't forget to spec them with RSpec
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 05 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.