public DataParser(ElephantsData outputData, String pathToFile = null) { OutputData = outputData; if (pathToFile != null) { file = new StreamReader(pathToFile); } }
public ElephantsSolver(String pathToFile = null) { Data = new ElephantsData(); Parser = new DataParser(Data, pathToFile); ResultWeight = 0; MinWeight = Int32.MaxValue; Cycles = new List <Cycle>(); }