semi-working prototype of simplistic compile-time graph resolution