public class SimpleDirectedEdge extends Object implements DirectedEdge, Serializable
DirectedEdge
Constructor and Description |
---|
SimpleDirectedEdge(int from,
int to) |
Modifier and Type | Method and Description |
---|---|
<T extends Edge> |
clone(int from,
int to)
Clones the contents associated with this edge, returning the copy mapped
to the provided vertices.
|
boolean |
equals(Object o)
|
<U extends Edge> |
flip()
Returns a copy of this edge with the
from and to vertices swapped. |
int |
from()
Returns the index of the tail vertex
|
int |
hashCode() |
int |
to()
Returns the index of the head vertex
|
String |
toString() |
public <T extends Edge> T clone(int from, int to)
public boolean equals(Object o)
true
if o
is an Edge
whose vertices are
oriented in the same way as this edge. That is, the from and to vertices
are identical.public <U extends Edge> U flip()
from
and to
vertices swapped.Copyright © 2012. All Rights Reserved.