Simple graph engine in under 100 lines