Interface DirectedEdge
- All Known Implementing Classes:
- DirectedEdgeImpl1
public interface DirectedEdge
Each edge has exactly one Source Vertex and one Target Vertex.
- Since:
- 06-Sep-2021 15:59:45
- Version:
- 1.0
- Author:
- David
- 
Method SummaryModifier and Type Method Description VertexgetSourceVertex()Returns the Vertex from which the Edge starts.VertexgetTargetVertex()Returns the Vertex at which the Edge ends.StringgetType()Returns the type associated with the Edge.voidsetSourceVertex(Vertex ver)Set the source Vertex for this Edge.voidsetTargetVertex(Vertex ver)Set the target Vertex for this Edge.voidsetType(String type)Set the type associated with this Edge.
- 
Method Details- 
getSourceVertexVertex getSourceVertex()Returns the Vertex from which the Edge starts.- Returns:
- sourceVertex The originating end of the Edge i.e. the Edge goes from the source to the target.
 
- 
setSourceVertexSet the source Vertex for this Edge.- Parameters:
- ver- The source Vertex for this edge.
 
- 
getTargetVertexVertex getTargetVertex()Returns the Vertex at which the Edge ends.- Returns:
- tergetVertex The target end of the Edge i.e. the Edge goes from the source to the target.
 
- 
setTargetVertexSet the target Vertex for this Edge.- Parameters:
- ver- The target Vertex for this edge.
 
- 
getTypeString getType()Returns the type associated with the Edge.- Returns:
- String The type of association the Edge represents.
 
- 
setTypeSet the type associated with this Edge.- Parameters:
- type- The type for this Edge.
 
 
-