Enter to send·Shift+Enter new line
Validates the graph structure to ensure it is well-formed. Checks for:
validate(): this