public class Edge
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Edge |
createEdge(Vertex from,
Vertex to) |
boolean |
equals(java.lang.Object o) |
Vertex |
getFrom() |
Vertex |
getTo() |
int |
hashCode() |
boolean |
isValidEdge()
Checks that this edge is between two non-null vertices
|
void |
setFrom(Vertex from) |
void |
setTo(Vertex to) |
public boolean isValidEdge()
public Vertex getFrom()
public void setFrom(Vertex from)
public Vertex getTo()
public void setTo(Vertex to)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object