Package com.amalgamasimulation.graph
Class Graph.Arc
java.lang.Object
com.amalgamasimulation.graph.Graph.Arc
Represents an arc of the graph.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
id
protected int id -
value
-
source
-
dest
-
-
Method Details
-
getValue
Returns the value of the arc.- Returns:
- Value of the arc
-
getSource
Returns the source node of the arc.- Returns:
- Source node of the arc
-
getDest
Returns the destination node of the arc.- Returns:
- Destination node of the arc
-
getId
public int getId()Returns unique identifier of the arc within the graph. Identifier is 0-based sequence number with which the arc was added to the graph- Returns:
- Unique identifier of the arc within the graph
-
toString
-