var grammar = require("./dot-grammar"),
    buildGraph = require("./build-graph");

module.exports = function readOne(str) {
  var parseTree = grammar.parse(str, "graphStmt");
  return buildGraph(parseTree);
};

