public VisualGraph Create(string file) { Lines = File.ReadAllLines(file); if (Lines.Length == 0) { throw new WrongFileException("выбран пустой файл"); } CreateBase(); Manager = new EdgesSetter(Graph); for (int i = 0; i < VerticesCount; i++) { ParseLine(i); } return(Graph); }
private void InitManagers() { VisualManager = new VisualManager(Graph); EdgesManager = new EdgesSetter(Graph); }