* [9fans] dag pic preprocessor
@ 2008-05-19 14:08 Steve Simon
2008-05-19 20:45 ` Pietro Gagliardi
0 siblings, 1 reply; 2+ messages in thread
From: Steve Simon @ 2008-05-19 14:08 UTC (permalink / raw)
To: 9fans
Hi,
I want to draw some DAGs. Dot (part of graphviz) seems to be the
way to do it these days, however looking at the sources I wondered
if there was a smaller simpler way to do this.
I found a reference to dag, a pic preprocessor which seems to
be a forunner of dot. Is the source available anywhere?
http://citeseer.ist.psu.edu/gansner89dag.html
-Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] dag pic preprocessor
2008-05-19 14:08 [9fans] dag pic preprocessor Steve Simon
@ 2008-05-19 20:45 ` Pietro Gagliardi
0 siblings, 0 replies; 2+ messages in thread
From: Pietro Gagliardi @ 2008-05-19 20:45 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On May 19, 2008, at 10:08 AM, Steve Simon wrote:
> Hi,
>
> I want to draw some DAGs. Dot (part of graphviz) seems to be the
> way to do it these days, however looking at the sources I wondered
> if there was a smaller simpler way to do this.
>
> I found a reference to dag, a pic preprocessor which seems to
> be a forunner of dot. Is the source available anywhere?
>
> http://citeseer.ist.psu.edu/gansner89dag.html
>
> -Steve
>
I asked about that. Got one response so far, but no code yet.
north@research.att.com
I think you can make a simple dot preprocessor using awk and pipes
(GraphViz is in /n/sources/extra):
BEGIN { in_it = 0 }
/^\.begin (dot|neato)/ { in_it = 1; program = $2 " -Tpic"; next }
/^\.end/ { close(program); in_it = 0; next }
!in_it { print; next }
{ print | program }
END { if (in_it) print "unclosed graph" | "cat 1>&2" }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-19 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 14:08 [9fans] dag pic preprocessor Steve Simon
2008-05-19 20:45 ` Pietro Gagliardi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).