Реферат: Графовые модели. Остов минимального веса
end;
procedure TForm1.SpeedButton4Click(Sender: TObject);
begin
for i:= 1 to n do
for j:= 1 to n do
begin
if ar[i,j]=0 then
sr.cells[i,j]:='-'
else
sr.cells[i,j]:=inttostr(ar[i,j]);
end;
end;
procedure TForm1.SpeedButton5Click(Sender: TObject);
var
i,x,y:integer;
begin
idown:=1;
form1.canvas.Refresh;
if checkbox1.Checked then speedbutton8.Click;
image1.Canvas.brush.color:= clwhite;
image1.Canvas.pen.Color:=clwhite;
image2.Canvas.brush.color:= clwhite;
image2.Canvas.pen.Color:=clwhite;
image1.Canvas.Rectangle(0,0,image1.Width,image1.Height);
image2.Canvas.Rectangle(0,0,image1.Width,image1.Height);
with image1.Canvas do
begin
brush.color:= cllime;
pen.Color:=clblue;