qnode.java

来自「用分支界限法解决的几个问题:包括0-1背包问题,最大团问题,电路布线问题,最大装」· Java 代码 · 共 33 行

JAVA
33
字号
/* * Qnode.java * * Created on 2006年4月19日, 上午12:45 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package test;/** * * @author michael */public class Qnode {    Qnode parent;    boolean leftChild;    int weight;    public  Qnode(Qnode parent,boolean leftChild,int weight){        this.parent = parent;        this.leftChild = leftChild;        this.weight = weight;    }    /** Creates a new instance of Qnode */    public Qnode() {    }    public int getWeight(){        return this.weight;    }}

⌨️ 快捷键说明

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