Package org.planit.graph
Class VertexImpl.EdgesImpl
- java.lang.Object
-
- org.planit.graph.VertexImpl.EdgesImpl
-
- All Implemented Interfaces:
Vertex.Edges
- Enclosing class:
- VertexImpl
public class VertexImpl.EdgesImpl extends Object implements Vertex.Edges
edges of this vertex- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description EdgesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddEdge(Edge edge)#Add edge, do not invoke when parsing networks, this connection is auto-populated before the assignment starts based on the edge and its two vertices that have been registered.Set<Edge>getEdges()#Returns a Set of Edge objectsbooleanremoveEdge(Edge edge)#Remove edge
-
-
-
Method Detail
-
addEdge
public boolean addEdge(Edge edge)
#Add edge, do not invoke when parsing networks, this connection is auto-populated before the assignment starts based on the edge and its two vertices that have been registered.- Specified by:
addEdgein interfaceVertex.Edges- Parameters:
edge- Edge to be added- Returns:
- true when added, false when already present (and not added)
-
removeEdge
public boolean removeEdge(Edge edge)
#Remove edge- Specified by:
removeEdgein interfaceVertex.Edges- Parameters:
edge- Edge to be removed- Returns:
- true when removed, false when not present (and not removed)
-
getEdges
public Set<Edge> getEdges()
#Returns a Set of Edge objects- Specified by:
getEdgesin interfaceVertex.Edges- Returns:
- Set of Edge objects
-
-