dot

Filter for drawing directed graphs.

How to align objects in different clusters

Hello,

I have some issues to make alignments into 2 directions.
Some parts should be aligned=LR some other not.

Here is what I want to draw:
https://www.dropbox.com/s/hulkekxgnb6mb07/3hostsinnetwork-should.PNG

command line or in-program use

Hi. I have made a small application that generates dot language graphs. These are saved to text files, like so:

digraph chain{
1->3 [style=bold,label="1"]
2->3 [style=bold,label="1"]
3->3 [style=bold,label="1"]
3->1 [style=bold,label="1"]
3->2 [style=bold,label="2"]
}

change class name in svg

Hi,
I m getting svg output from dot.

in default generate svg file for node has class="node" .

is there any way to change this class value, i want different value for different node in a graph.

Thanks,
Aamir

Webdot - Images - SVGZ

I believe I found a bug in webdot, I was about to submit it but in light of my last "issue" (my setup was at fault) I figured I would present it here first:

Using graph.dot file:
digraph G {
imagepath="/var/www/html/some_directory/webdot/";
node [URL="\N.html",image="server.gif"]
a -> b -> c
a -> c -> a
}

The graph and images draw perfectly with:

But if I try to get the equivalent SVGZ:

Can I build a partially directed graph?

I would like to create a SQL Diagram which has a node for each table in the query and an edge between nodes that are joined by a predicate. An edge is directed if it points into a unique key of the joined table. Most joins flow from a child node into a unique key of the parent (A One-to-Many join). Sometimes the join is from one unique key to another and create a One-to-One join. I can cover this case by simply creating two edges. The problematic case is when a join doesn't have a unique key on either end. In this case it's a Many-to-Many join.

Need to control edge length in directed dot graph

Is there a way to use pydot to generate a directed tree graph (using python) that looks like "normal tree graphs" where every node of the same depth displays at the same depth, and every edge is at some angle (not straight down)?

When I use these defaults:

graph = pydot.Dot(graph_type='digraph', nodesep=.75)
graph.set_node_defaults(style="filled", fillcolor="grey")
graph.set_edge_defaults(color="blue", arrowhead="vee", weight="0")

graphviz-php - segmentation fault

I am on RHE 6, I have installed the latest rpms with yum:
graphviz-2.34.0-1.el6.x86_64.rpm
graphviz-php-2.34.0-1.el6.x86_64.rpm

I can run the example on the command line (/usr/share/graphviz/demo/modgraph.php) successfully.

I am trying to produce a simple graph with a php page on Apache (2.2.15) using the following code:
<?php
include("gv.php");

$g = gv::digraph('my first graph');
$node1 = gv::node($g, 'node1');
$node2 = gv::node($g, 'node2');
$edge = gv::edge($node1, $node2);
$edge = gv::edge($node1, $node1);
$edge = gv::edge($node2, $node2);

Layers for presentations

Hi,

Simple Script kill dot process

This simple example kill the dot process. The problem is the <BR/> tag.

digraph G {
394728 [shape=plaintext label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="5">
<TR>
<TD>
<BR/>It is not possible to use BR
</TD>
</TR>
</TABLE>>]
}

Intercluster Lables support

Hi,

We have tried about everything to make these kind of graphs look good (generation is automated).
Any idea what should we do ? Our best result is attacked, but lables are one on top of the other.
The edge should start and end where they do in the picture.

digraph G {
compound=true;
//edge [splines=ortho]
subgraph cluster_0 {
URL="/Wandering";
label="FSM[Wandering]";
"0start" [shape=point];
subgraph cluster_1 {
URL="/Wandering/Turn";
label="Turn";
2 [URL="/Wandering/Turn/Turn", label="TASK[Turn]"];
}

subgraph cluster_3 {
URL="/Wandering/Drive";
label="Drive";

Syndicate content