24 lines
530 B
Dart
24 lines
530 B
Dart
import 'src/graph.dart';
|
|
|
|
void main(List<String> arguments) {
|
|
Map<int, int> x = <int, int>{};
|
|
x[2] = 10;
|
|
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();
|
|
x = <int, int>{};
|
|
x1.printG();
|
|
x1.addDot(Dot.fromTwoLists("T3", [1, 2], [10, 20]));
|
|
x1.printG();
|
|
x1.checkDots(true);
|
|
x1.printG();
|
|
x1.toFile("out.txt");
|
|
Graphs.fromFile("out.txt");
|
|
}
|