Реферат: Графовые модели. Остов минимального веса
m:array[1..10] of integer;
vx:array[1..10] of integer;
vy:array[1..10] of integer;
implementation
uses Unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
t,i:integer;
begin
n:=8; {изначально число вершин=8}
SpeedButton3.Enabled:=True;
idown:=1;
speedbutton7.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);
for i:=1 to sr.ColCount do
for j:=1 to sr.Rowcount do begin
sr.Cells[i,j]:='';
end;
for i:=1 to sg.ColCount do
for j:=1 to sg.Rowcount do begin
sg.Cells[i,j]:='';
edit1.Text:= inttostr(t);
for t:=1 to n do begin