Improve error handling when a graph is syntactically correct but doesn't "compile", i.e. has an edge to a node that doesn't exist