aboutsummaryrefslogtreecommitdiff
path: root/tools/cliptree.gvpr
blob: 428cdfee538ac416996bb1cd832f30478df89188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Construct subgraph reachable from node ARGV[0] by forward edges */
BEG_G {
  node_t r = node($,ARGV[0]);

  $tvroot = r;
  $tvtype = TV_fwd;
  //print ("//  Staring node: ", r.name);
}
N{
  print ("// subgraph node: ", $.name);
  $tvroot=NULL;
  subnode($T,$);
}
E{
  print ("// subgraph edge: ", $.name);
  subedge($T,$);
}