Graphs_dart/bin/main.dart

18 lines
356 B
Dart
Raw Normal View History

2021-10-21 01:31:33 +03:00
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);
x1.printG();
p.delPath(4);
x1.printG();
/*var p2 = Dot("Точка 2", 2, x);
x1.addDot(p2);
x1.printG();
x1.checkDots();*/
}