com.hankcs.hanlp.seg.NShort.Path
类 QueueElement

java.lang.Object
  继承者 com.hankcs.hanlp.seg.NShort.Path.QueueElement
所有已实现的接口:
Comparable<QueueElement>

public class QueueElement
extends Object
implements Comparable<QueueElement>

作者:
hankcs

字段摘要
 int from
          边的起点
 int index
          边的终点在顶点数组中的下标
 QueueElement next
          下一个,这是一个链表结构的最小堆
 double weight
          权重
 
构造方法摘要
QueueElement(int from, int index, double weight)
          构造一个边节点
 
方法摘要
 int compareTo(QueueElement other)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

from

public int from
边的起点


index

public int index
边的终点在顶点数组中的下标


weight

public double weight
权重


next

public QueueElement next
下一个,这是一个链表结构的最小堆

构造方法详细信息

QueueElement

public QueueElement(int from,
                    int index,
                    double weight)
构造一个边节点

参数:
from - 边的起点
index - 边的终点
weight - 权重
方法详细信息

compareTo

public int compareTo(QueueElement other)
指定者:
接口 Comparable<QueueElement> 中的 compareTo


Copyright © 2014–2015 码农场. All rights reserved.