Загрузил(а) файлы в 'bin'

This commit is contained in:
Морозов Андрей 2021-10-21 12:37:43 +00:00
parent a745c61946
commit 8df7c6cf34
1 changed files with 14 additions and 8 deletions

View File

@ -2,16 +2,22 @@ import 'src/graph.dart';
void main(List<String> arguments) {
Map<int, int> x = <int, int>{};
x[1] = 5;
x[2] = 10;
var p = Dot.fromMap("Точка 1", 1, x);
p.addPath(3, 20);
var x1 = Graphs([p], true);
x[4] = 50;
var p = Dot.fromMap("Точка 1", x);
p.printD();
x = <int, int>{};
var x1 = Graphs.fromList("Граф 1", [p], true);
x[1] = 5;
p = Dot.fromMap("Точка 2", x);
x1.addDot(p);
x1.printG();
p.delPath(4);
x = <int, int>{};
x1.printG();
/*var p2 = Dot("Точка 2", 2, x);
x1.addDot(p2);
x1.addDot(Dot.fromTwoLists("T3", [1, 2], [10, 20]));
x1.printG();
x1.checkDots();*/
x1.checkDots(true);
x1.printG();
x1.toFile("out.txt");
Graphs.fromFile("out.txt");
}