Build logical graph of units (draft)