📄 edge.java
字号:
package salvo.jesus.graph;
import java.io.*;
/**
* An interface for edges in a Graph.
*
* @author Jesus M. Salvo Jr.
*/
public interface Edge extends LabeledEdge {
/**
* Returns the endpoint A of the edge.
*
* @return Vertex Endpoint A of the edge.
*/
public Vertex getVertexA();
/**
* Returns the endpoint B of the edge.
*
* @return Vertex Endpoint B of the edge.
*/
public Vertex getVertexB();
/**
* Returns the Vertex opposite to the specified Vertex in the edge.
*
* @return Vertex The Vertex object that is the opposite to the specifid
* Vertex. If the specified Vertex is not an endpoint of the
* edge, returns null.
*/
public Vertex getOppositeVertex( Vertex v );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -