directededge.java
来自「OpenJGraph是一个开源的Java库」· Java 代码 · 共 36 行
JAVA
36 行
package salvo.jesus.graph;
/**
* Represents a directed edge in a graph.
*
* @author Jesus M. Salvo Jr.
*/
public interface DirectedEdge extends Edge {
static final int DIRECTION_A_TO_B = 1;
static final int DIRECTION_B_TO_A = -1;
static final int NODIRECTION = 0;
/**
* Returns the source Vertex of the edge.
*
* @return The source Vertex.
*/
public Vertex getSource();
/**
* Returns the sink Vertex of the edge.
*
* @return The sink Vertex.
*/
public Vertex getSink();
/**
* Returns the direction of the Edge
*
*/
public int getDirection();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?