Permalink
Browse files

Add test/compound.js

  • Loading branch information...
1 parent 3022587 commit efa506fe49b62a4ddf228c6e1be6e5147a323471 @glejeune committed Oct 20, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 tests/compound.js
View
14 tests/compound.js
@@ -0,0 +1,14 @@
+var sys = require('sys'),
+ graphviz = require('../lib/graphviz');
+
+// Create digraph G
+var g = graphviz.digraph("G");
+g.set( "splines", "compound");
+g.from( "A" ).to( "B" ).to( "F" );
+g.from( "A" ).to( "C" ).to( "D" ).to( "F" );
+g.from( "A" ).to( "D" );
+g.from( "A" ).to( "F" );
+g.from( "C" ).to( "F" );
+g.from( "E" ).to( "F" );
+
+g.render( "png", "compound.png" );

0 comments on commit efa506f

Please sign in to comment.