Загрузил(а) файлы в 'bin'
This commit is contained in:
parent
6b3b499695
commit
f4304de14a
|
@ -1,23 +1,24 @@
|
||||||
import 'src/graph.dart';
|
import 'src/graph.dart';
|
||||||
|
|
||||||
void main(List<String> arguments) {
|
void main(List<String> arguments) {
|
||||||
Map<int, int> x = <int, int>{};
|
Map<int, int> x = {1: 10, 2: 20};
|
||||||
x[2] = 10;
|
var p = Dot.fromMap("Т1", x);
|
||||||
x[4] = 50;
|
|
||||||
var p = Dot.fromMap("Точка 1", x);
|
|
||||||
p.printD();
|
p.printD();
|
||||||
x = <int, int>{};
|
x = <int, int>{};
|
||||||
var x1 = Graphs.fromList("Граф 1", [p], true);
|
|
||||||
x[1] = 5;
|
x[1] = 11;
|
||||||
p = Dot.fromMap("Точка 2", x);
|
var p2 = Dot.fromMap("Т2", x);
|
||||||
x1.addDot(p);
|
p2.printD();
|
||||||
x1.printG();
|
|
||||||
x = <int, int>{};
|
x = <int, int>{};
|
||||||
x1.printG();
|
|
||||||
x1.addDot(Dot.fromTwoLists("T3", [1, 2], [10, 20]));
|
var x1 = Graphs.fromList("Граф 1", [p, p2], true, false);
|
||||||
x1.printG();
|
x1.addDot(p);
|
||||||
|
x1.addDotFromToLists("T3", [1, 2], [10, 20]);
|
||||||
|
x1.addIsolated("T4");
|
||||||
x1.checkDots(true);
|
x1.checkDots(true);
|
||||||
x1.printG();
|
x1.printG();
|
||||||
x1.toFile("out.txt");
|
print(x1.addPath(4, 1, 10));
|
||||||
Graphs.fromFile("out.txt");
|
print(x1.addPath(4, 2, 10));
|
||||||
|
x1.printG();
|
||||||
|
x1.toFile("outTest.txt");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue