32 lines
600 B
C#
32 lines
600 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace BotSharp.MachineLearning.CRFLite
|
|
{
|
|
public class Path
|
|
{
|
|
public int fid;
|
|
public Node rnode;
|
|
public Node lnode;
|
|
public double cost;
|
|
|
|
public Path()
|
|
{
|
|
rnode = null;
|
|
lnode = null;
|
|
cost = 0;
|
|
}
|
|
|
|
public void add(Node _lnode, Node _rnode)
|
|
{
|
|
lnode = _lnode;
|
|
rnode = _rnode;
|
|
|
|
lnode.rpathList.Add(this);
|
|
rnode.lpathList.Add(this);
|
|
}
|
|
}
|
|
}
|