⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linklistnode.java

📁 This code implements the shortest path algorithm via the simple scheme and fibonacci heap data struc
💻 JAVA
字号:

public class LinkListNode {
	// link list data structure
	private int weight;
	private int index;
	private LinkListNode nextlink;
	
	public LinkListNode(){
		weight = 0;
		index = 0;
		nextlink = null;
	}
	
	public LinkListNode(int w, int idx, LinkListNode nextvalue){
		weight = w;
		index = idx;
		nextlink = nextvalue;
	}
	
	public void setWeight(int w){
		weight = w;
	}
	
	public void setIndex(int idx){
		index = idx;
	}
	
	public void setLink(LinkListNode newLink){
		nextlink = newLink;
	}
	
	public int getWeights(){
		return weight;
	}
	
	public int getIndex(){
		return index;
	}
	
	public LinkListNode getLink(){
		return nextlink;
	}
}

⌨️ 快捷键说明

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