public class EdgeList extends Object
Constructor and Description |
---|
EdgeList() |
Modifier and Type | Method and Description |
---|---|
void |
add(Edge e)
Insert an edge unless it is already in the list
|
void |
addAll(Collection edgeColl) |
int |
findEdgeIndex(Edge e)
If the edge e is already in the list, return its index.
|
Edge |
findEqualEdge(Edge e)
If there is an edge equal to e already in the list, return it.
|
Edge |
get(int i) |
List |
getEdges() |
Iterator |
iterator() |
void |
print(PrintStream out) |
public void add(Edge e)
e
- Edgepublic void addAll(Collection edgeColl)
public List getEdges()
public Edge findEqualEdge(Edge e)
e
- Edgepublic Iterator iterator()
public Edge get(int i)
public int findEdgeIndex(Edge e)
e
- Edgepublic void print(PrintStream out)
Copyright © 2024. All rights reserved.