Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generates a random tree
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
.gitignore
LICENSE
README.md
package.json
tree.js

README.md

random-tree

Generates a random tree

Example

var createRandomTree = require("random-tree")

console.log(createRandomTree(10))

Install

npm install random-tree

require("random-tree")(n)

Generates a random tree with n vertices

  • n is the number of vertices in the tree

Returns A random tree

Credits

(c) 2013 Mikola Lysenko. MIT License

Something went wrong with that request. Please try again.