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

📄 result.java

📁 自己上学编的基于Dijkstra的最短路径&最大流量java源码
💻 JAVA
字号:
/**
 * The class Result is used to represents edges in the shortest path
 */
public class Result {
	//start node
	private String preNode;

	//end node
    private String nachnode;

    //weight (distance or time)
    private float weight;

    public Result(String preNode, String nachnode, float weight) {
        this.preNode = preNode;
        this.nachnode = nachnode;
        this.weight = weight;
    }

    public String getPreNode() {
        return preNode;
    }

    public void setPreNode(String preNode) {
        this.preNode = preNode;
    }

    public String getNachNode() {
        return nachnode;
    }

    public void setNachNode(String nachnode) {
        this.nachnode = nachnode;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}

⌨️ 快捷键说明

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