edge.java

来自「toocom源代码,主要应用在本体匹配方面!」· Java 代码 · 共 27 行

JAVA
27 行
字号
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 + =
减小字号Ctrl + -
显示快捷键?