Basic back-end done.
Need to define proper nodes and edges.