graphobject.java

来自「c4.5 ID3 分类决策数 公用java包 share」· Java 代码 · 共 35 行

JAVA
35
字号
package shared;
import java.lang.*;

/** This class contains features that are used in the Node and Edge classes.
 * @author James Louis 4/17/2002 Java Implementation
 */
public class GraphObject{
    //added by JL
    //based on LEDA
    
    /** The successor GraphObject in the list of GraphObjects maintained by the Graph
     * class.
     */    
    protected GraphObject obj_list_succ;
    /** The predicessor GraphObject in the list of GraphObjects maintained by the Graph
     * class.
     */    
    protected GraphObject obj_list_pred;
    /** An integer identification number.
     */    
    protected int id;
    /** The data stored in this GraphObject.
     */    
    public Object data;
    
    /** Sets the ID number to the given number.
     * @param newid The new ID number.
     */    
    public void set_id(int newid){id = newid;}
    /** Returns the ID number masked with 0x7fffffff.
     * @return The ID number masked with 0x7fffffff.
     */    
    public int index(){return id & 0x7fffffff;}
    
}//End of GraphObject class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?