Simplify nodes definition during graph compilation