private void processFile(FileSystem fs, Path inputPath) throws IOException {
        logger.info("Process: " + inputPath);
        FSDataInputStream in = fs.open(inputPath);
        BufferedReader rd = new BufferedReader(new InputStreamReader(in));

        Pattern tokenPattern = Pattern.compile("(\t)+|( )+|(,)+");
        String ln;
        while ((ln = rd.readLine()) != null) {
            if (ln.startsWith("#")) continue;
            String[] tok = tokenPattern.split(ln);
            if (tok.length >= 2) {
                try {
                    int from = Integer.parseInt(tok[0]);
                    int to = Integer.parseInt(tok[1]);

                    edgeProcessor.receiveEdge(from, to, tok.length == 3 ? tok[2] : null);
                } catch (NumberFormatException nfe) {
                     logger.warning("Number format exceptions on line: " + ln);
                     nfe.printStackTrace();
                }
            }
        }
    }