2
This software may only be used by you under license from AT&T Corp.
3
("AT&T"). A copy of AT&T's Source Code Agreement is available at
4
AT&T's Internet website having the URL:
5
<http://www.research.att.com/sw/tools/graphviz/license/source.html>
6
If you received this software without first entering into a license
7
with AT&T, you have an infringing copy of this software and cannot use
8
it without violating AT&T's intellectual property rights.
13
* Written by Emden R. Gansner
14
* Derived from Graham Wills' algorithm described in GD'97.
31
"twopi", /* Program */
32
VERSION, /* Version */
39
static void intr(int s)
41
if (G) dotneato_write(G);
47
int main (int argc, char** argv)
49
dotneato_initialize (argc, argv);
51
signal (SIGUSR1, toggle);
52
signal (SIGINT, intr);
58
Agnode_t *node[NUMNODES];
66
/* Create a new graph */
67
G = agopen("new_graph", AGRAPH);
70
for (j=0; j<NUMNODES; j++) {
71
sprintf(name, "%d", j);
72
node[j] = agnode(G, name);
76
for (j=0; j<NUMNODES; j++) {
77
for (k=j+1; k<NUMNODES; k++) {
78
agedge(G,node[j],node[k]);
90
/* first log is baseline, second log shows leaks. */
91
dmalloc_log_unfreed();