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)
public void addAll(Collection edgeColl)
public List getEdges()
public Edge findEqualEdge(Edge e)
public Iterator iterator()
public Edge get(int i)
public int findEdgeIndex(Edge e)
public void print(PrintStream out)
Copyright © 2016. All rights reserved.