3 # Graph a sequence of lines as prev->next relationships,
4 # highlighting frequencies of pairings.
17 ++nlinks_to
[prev
, curr
]
29 "\"%s\" [penwidth=10, style=filled, fillcolor=tomato , fontcolor=white, color=yellowgreen];\n", \
33 "\"%s\" [penwidth=0, style=filled, fillcolor=yellowgreen, fontcolor=white];\n", \
36 "\"%s\" [penwidth=0, style=filled, fillcolor=tomato , fontcolor=white];\n", \
40 for (src_dst in nlinks_to
) {
41 split(src_dst
, sd
, SUBSEP
);
45 n = nlinks_to
[src
, dst
]
46 penwidth = num_scale
(n
, m
, 1, 5)
47 color =
sprintf("/orrd9/%d", num_scale
(n
, m
, 2, 9))
48 label =
sprintf("%s %.2f%%", src
, (n
/ m
) * 100)
52 , fontname=monospace \
59 src
, dst
, label
, penwidth
, color
;
64 function num_scale
(src_cur
, src_max
, dst_min
, dst_max
) {
65 return dst_min
+ ((src_cur
* (dst_max
- dst_min
)) / src_max
)
This page took 0.073026 seconds and 4 git commands to generate.