?? edgelink.java
字號:
package reg402;
import java.awt.Rectangle;
public class EdgeLink {
GraphNode n1; //邊的一個結點
GraphNode n2; //邊的另一個結點
String label; //邊的權值
EdgeLink linked; //指向另一條邊
EdgeLink() {
linked = null;
}
EdgeLink(GraphNode n1, GraphNode n2) {
this();
this.n1 = n1;
this.n2 = n2;
this.label = "ε";
}
EdgeLink(GraphNode n1, GraphNode n2, String label) {
this(n1, n2);
this.label = label;
}
public void setLabel(String label) {
this.label = label;
}
public String getLabel() {
return this.label; //獲得轉換字符
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -