From f4304de14a54c4052f2a63a2f2bdb1aba13f4806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BE=D1=80=D0=BE=D0=B7=D0=BE=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9?= Date: Fri, 22 Oct 2021 12:50:52 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20'bin?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/main.dart | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/bin/main.dart b/bin/main.dart index bddfcee..0eacfe0 100644 --- a/bin/main.dart +++ b/bin/main.dart @@ -1,23 +1,24 @@ import 'src/graph.dart'; void main(List arguments) { - Map x = {}; - x[2] = 10; - x[4] = 50; - var p = Dot.fromMap("Точка 1", x); + Map x = {1: 10, 2: 20}; + var p = Dot.fromMap("Т1", x); p.printD(); x = {}; - var x1 = Graphs.fromList("Граф 1", [p], true); - x[1] = 5; - p = Dot.fromMap("Точка 2", x); - x1.addDot(p); - x1.printG(); + + x[1] = 11; + var p2 = Dot.fromMap("Т2", x); + p2.printD(); x = {}; - x1.printG(); - x1.addDot(Dot.fromTwoLists("T3", [1, 2], [10, 20])); - x1.printG(); + + var x1 = Graphs.fromList("Граф 1", [p, p2], true, false); + x1.addDot(p); + x1.addDotFromToLists("T3", [1, 2], [10, 20]); + x1.addIsolated("T4"); x1.checkDots(true); x1.printG(); - x1.toFile("out.txt"); - Graphs.fromFile("out.txt"); + print(x1.addPath(4, 1, 10)); + print(x1.addPath(4, 2, 10)); + x1.printG(); + x1.toFile("outTest.txt"); }