当我实现构建图(马尔可夫随机场中的图切割算法)时,我不知道为什么当源节点和目标节点不为空时,为什么addEdge()
函数不起作用并在一次操作中返回空。而且,由于图表是根据训练数据创建的,我很困惑为什么只是记录出现这种情况。编码:
stofEdge[i][j]=dd.addEdge(Snode,fields[i][j]);
//stofEdge is used to store the created edges. When i=573 and j=2, the edge is null.
当我实现构建图(马尔可夫随机场中的图切割算法)时,我不知道为什么当源节点和目标节点不为空时,为什么addEdge()
函数不起作用并在一次操作中返回空。而且,由于图表是根据训练数据创建的,我很困惑为什么只是记录出现这种情况。编码:
stofEdge[i][j]=dd.addEdge(Snode,fields[i][j]);
//stofEdge is used to store the created edges. When i=573 and j=2, the edge is null.