pointertoheap.java

来自「This code implements the shortest path a」· Java 代码 · 共 32 行

JAVA
32
字号


public class PointerToHeap {
	// pointer from a fibonacci node to a distance value of the graph
	private int dist;
	private FibonacciNode Pointer;
	
	public PointerToHeap(){
		this.dist=0;
		this.Pointer=null;
	}
	
	public PointerToHeap(int d,FibonacciNode P){
		dist=d;
		Pointer=P;
	}
	public int getDist(){
		return this.dist;
	}
	
	public FibonacciNode getPointer(){
		return this.Pointer;
	}
	
	public void setDist(int dist){
		this.dist=dist;
	}
	public void setPointer(FibonacciNode Pointer){
		this.Pointer=Pointer;
	}
}

⌨️ 快捷键说明

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