Removed unnecessary received at, fixed typo.
Replaced graph-fn with a defn that works with regular hashes.