• Stars
    star
    195
  • Rank 199,374 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 14 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Node.js interface to the GraphViz graphing tool

Node.js GraphViz Module

All Contributors

Copyright (C) 2010-2019 Gregoire Lejeune

DESCRIPTION

Interface to the GraphViz graphing tool

SYNOPSIS

A basic example

var util = require('util'),
    graphviz = require('graphviz');

// Create digraph G
var g = graphviz.digraph("G");

// Add node (ID: Hello)
var n1 = g.addNode( "Hello", {"color" : "blue"} );
n1.set( "style", "filled" );

// Add node (ID: World)
g.addNode( "World" );

// Add edge between the two nodes
var e = g.addEdge( n1, "World" );
e.set( "color", "red" );

// Print the dot script
console.log( g.to_dot() );

// Set GraphViz path (if not in your path)
g.setGraphVizPath( "/usr/local/bin" );
// Generate a PNG output
g.output( "png", "test01.png" );

INSTALLATION

$ npm install graphviz

You also need to install GraphViz

DOCUMENTATION

To build the documentation:

npm install -g jake dox
jake doc & open documentation.json

AUTHORS

LICENCES

Copyright (c) 2010 Gregoire Lejeune [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributors

Thanks goes to these wonderful people (emoji key):

Gregoire Lejeune
Gregoire Lejeune

💻 📖 💡
Darius Kazemi
Darius Kazemi

💻
Sébastien ELET
Sébastien ELET

💻
Andreas Lind
Andreas Lind

💻
Farrin Reid
Farrin Reid

💻
Patrik Henningsson
Patrik Henningsson

💻
Pooria Azimi
Pooria Azimi

💻
Ruben Bridgewater
Ruben Bridgewater

💻
Mathieu Ravaux
Mathieu Ravaux

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

More Repositories

1

Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
Ruby
606
star
2

jekyll-epub

Create an eBook (epub) of your Jekyll blog
Ruby
68
star
3

ruby-lua

Call Lua from Ruby (and Ruby from Lua in Ruby)
C
55
star
4

Leonhard

A simple viewer/editor for GraphViz using MacRuby
Ruby
52
star
5

ruby-yuml

Ruby/yUML is a small DSL to generate UML diagrams with yuml.me
Ruby
29
star
6

ruby-leap-motion

Ruby interface to the Leap Motion Controller
C++
25
star
7

ruby-xslt

Ruby/XSLT is a simple XSLT class based on libxml <xmlsoft.org/> and libxslt <xmlsoft.org/XSLT/>
Ruby
24
star
8

syncftp

Sync via FTP, only modified files
Ruby
20
star
9

ews

Elixir Web Shell
Elixir
19
star
10

ruby-leap-motion-ws

Ruby interface to the Leap Motion Controller (via WebSocket)
Ruby
18
star
11

RConsole

A simple Ruby console for Mac
Ruby
13
star
12

vf

Enhanced version of the standard "cd" command
Ruby
12
star
13

GemMenu

Manage your gems from the MacOSX Menu
Ruby
10
star
14

erlang-graphviz

Erlang interface to the GraphViz graphing tool
Erlang
10
star
15

lipsum

A Ruby class to retrive "lorem ipsum" placeholder text from lipsum.com.
Ruby
9
star
16

Capcode

Capcode is a tiny MVC framework
Ruby
9
star
17

cmake-samples

CMake samples
C++
9
star
18

node-prowl

Wrapprer for prowl, http://prowl.weks.net/
JavaScript
5
star
19

.dotrc

My dot files for vim, zsh, ...
Vim Script
5
star
20

ceres

A tiny Planet powered by Capcode
Ruby
5
star
21

elixir-tar

Manipulate Tar Archive
Elixir
5
star
22

sh-xml

A (very) naive XML parser
Shell
4
star
23

soap-lc

SOAP Lite Client provides support for developing clients interfaces from WSDL files.
Ruby
4
star
24

kuraudo

[WIP] Kuraudo is a multi-cloud framework for Elixir
Elixir
3
star
25

daemonize

Daemonize for node.js
JavaScript
3
star
26

shakkei

Useful modules for Elixir
Elixir
3
star
27

tempfile

Elixir module for managing temporary files
Elixir
3
star
28

ara

Ara is a tiny class that’s allow you to use actors in Ruby
Ruby
3
star
29

kex

Easy building and installing of Elixir instances
Shell
3
star
30

Jubular

A Java/Play! clone of Rubular (http://rubular.com/)
JavaScript
3
star
31

sh-mvc

A (very) naive MVC framework
Shell
2
star
32

exos

Elixir module for managing OS informations
Elixir
2
star
33

couchc

couchc is a tiny console for CouchDB
Ruby
2
star
34

emery

Node.js extended
JavaScript
2
star
35

Capcode.more

Capcode plugins
Ruby
2
star
36

miki

A Mini wIKI - Erlang & AngularJS powered
CSS
2
star
37

Mixr

Mixr is a tiny memory object caching system
Ruby
2
star
38

capcode-oauth-example

Example client/server code for oauth with Ruby and Capcode
Ruby
1
star
39

OpenInCoda

OS X toolbar script to open files or folders in Coda.
1
star
40

clish

A CLI to create shell CLI.
Shell
1
star
41

ROSXAuth

A small class to execute process with root privileges on MacOSX
C
1
star
42

ExMix

Sublime Text 2 plugin to run mix
Python
1
star
43

espresso

Snippets for Cappuccino
1
star
44

rubyfrance.org

Site de l'association RubyFrance
Ruby
1
star
45

micro_frontend

Micro frontend
Ruby
1
star
46

iPhoneRDocTemplate

A RDoc template "à la iPhone"
JavaScript
1
star
47

chocbomb

ChocBomb is a shameful copy of ChocTop - Build and deploy tools for Cocoa apps using Sparkle for distributions and upgrades; it’s like Hoe but for Cocoa apps.
Ruby
1
star