📄 edge.java
字号:
package toocom.ocgl;
/**
* This class represents a simple edge in a graph. It is used by the class GraphDrawing. The
* attributes are the first and the second node (from and to), represented by numbers as an
* optimization (those numbers correspond to a place in a Nodes vector). The last attribute
* is the length of the edge, in pixels.
* @author Nicolas Roy
* @author Matthieu Legall
* @author Dounia K閐a
*/
public class Edge {
public int from;
public int to;
public int len;
public Edge(int f, int t, int l){
this.from = f;
this.to = t;
this.len = l;
}
public void setLength(int l){
this.len = l;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -