var dfs = require("./dfs");

module.exports = preorder;

function preorder(g, vs, fn, successors) {
  return dfs(g, vs, "post", fn, successors);
}

var dfs = require("./dfs");

module.exports = postorder;

function postorder(g, vs, fn, successors) {
  return dfs(g, vs, "post", fn, successors);
}

Fix typo in postorder function