Constraints are user-defined properties for graph nodes that provide additional information to the compiler.