It's somewhat based on some of the stuff Github uses internall for graph generation (so the README says).