You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compare_dag.m
    path of file: ./repos/bnt/Utils/utils
    
    the code of the file until where you have to start completion: function [correct,miss,addation,reverse,error] = compare_dag(standard,dag)
% 
% This is my first code in BNT. We always want to know a dag which we
% built different to standard network.So you can use compare_dag 
% get correct edge ,miss edge,addation edge,reverse edge and all error
% edge.
% [correct,miss,addation,reverse,error] = compare_dag(standard,dag)
% Input:
%       standard means standard network
%       dag means the dag we built
% Output:
%      correct 
%      miss
%      addation
%      reverse
%      error
%
% Written by WANGXin(growlithe1205@gmail.com)
%

    
function [correct,miss,addation,reverse,error] = compare_dag(standard,dag)
% 
% This is my first code in BNT. We always want to know a dag which we
% built different to standard network.So you can use compare_dag 
% get correct edge ,miss edge,addation edge,reverse edge and all error
% edge.
% [correct,miss,addation,reverse,error] = compare_dag(standard,dag)
% Input:
%       standard means standard network
%       dag means the dag we built
% Output:
%      correct 
%      miss
%      addation
%      reverse
%      error
%
% Written by WANGXin(growlithe1205@gmail.com)
%
%    我英文不太好，这是我为BNT开发的第一个代码，不知道有没有跟现有代码重复。
%    该函数比较基准网络和生成网络结构上的差异，返回正确的边数、缺失的边数、增加的边
%    数、反向的边数、以及错误的边数，其中第一个参数为基准网络，第二次参数我们建立的
%    网络。
%    该函数由王欣编写，如果发现BUG请联系作者。
if(isempty(standard))
    fprintf('standard network is empty');
    return
end