Реферат: Графовые модели. Остов минимального веса
font.Size:=8;
for i:= 1 to n do
for j:=1 to n do
if (a[i,j]<>0) and (a[i,j]<900) then
begin
pen.Width:=1;
moveto(vx[i]+7,vy[i]+7);
lineto(vx[j]+7,vy[j]+7);
brush.color:= clwhite;
textout(round((vx[i]+vx[j]+4)/2),round((vy[i]+vy[j]+1)/2),inttostr(a[i,j]));
end;
brush.color:= cllime;
for i:= 1 to n do
begin
font.Size:=1;
rectangle(vx[i],vy[i],vx[i]+15,vy[i]+15);
textout(vx[i]+4,vy[i]+1,inttostr(i));
end;
end;
with image2.Canvas do
begin
brush.color:= clLime;
pen.Color:=clblue;
font.Name:='Courier';
font.Size:=8;
for i:= 1 to n do
for j:=1 to n do
if (ar[i,j]<>0) and (ar[i,j]<900) then
begin