Click graphs

Eddie Kohler kohler at aciri.org
Thu Jun 28 16:14:34 EDT 2001


We use MetaPost!!

http://cm.bell-labs.com/who/hobby/MetaPost.html

We've got some MetaPost macro files that let us construct simple diagrams
like this:

beginfig(4);
  boxjoin(a.se + (15,0) = b.sw);
  elementit.src(btex \element{FromDevice(eth0)} etex, 0, 1, push);
  elementit.strip(btex \element{Counter} etex, 1, 1, agnostic_push);
  elementit.sink(btex \element{Discard} etex, 1, 0, push);
  drawelement(src,strip,sink);
  drawconnect(src,0,0,strip);
  drawconnect(strip,0,0,sink);
endfig;

BIf you want, we'll post this.

The estimable Brecht Vermeulen has a GUI, too, but he hasn't sent it to us
yet, HINT, HINT, Brecht :)

love,
de



More information about the click mailing list