☰
Debian Codegraph
@
14.1.2-1
/
/
cmd
/
gvpr
/
lib
/
dechain
☽
☼
cmd/gvpr/lib/dechain
code
plain
raw
EPL-1.0
Copyright (C) John Ellson <
[email protected]
>,; Copyright (C) Emden Gansner <
[email protected]
>,; Copyright (C) Yifan Hu <
[email protected]
>,; Copyright (C) Stephen North <
[email protected]
>
debian/copyright
1
/* Remove peninsulas - chains hanging off the main graph */
2
BEGIN {
3
edge_t e;
4
node_t v, n;
5
}
6
N [degree == 1] {
7
n = $;
8
while (n.degree == 1) {
9
e = fstedge (n);
10
if (e.head == n) v = e.tail;
11
else v = e.head;
12
delete($G,n);
13
n = v;
14
}
15
}