private void _getFileInput() { var path = _fileInput.GetFileInput(); var extension = Path.GetExtension(path); // Get input reader based on extension of given path InputReaderFactory inputReaderFactory = new InputReaderFactory(); IInputReader inputReader = inputReaderFactory.GetInputReader(extension); // Get node and edge list from input reader inputReader.Read(path); _nodes = inputReader.CreateNodeList(); _edges = inputReader.CreateEdgeList(); }