2 # This script takes a .vol file that has neighbor information, and creates a
3 # map of the network, by drawing a line between all particles which are
5 open A
,"@ARGV[0].vol" or die "Can't open input file";
6 open B
,">@ARGV[0].net" or die "Can't open output file";
17 $l[$n][$_-5]=@A[$_] foreach 5..$#A;
21 foreach $n (1..$maxn) {
24 print B
"$x[$j] $y[$j] $z[$j]\n$x[$n] $y[$n] $z[$n]\n\n\n" if $j>=$n;