public class LabeledEdge extends Object implements Edge, Serializable
Constructor and Description |
---|
LabeledEdge(int from,
int to,
String fromLabel,
String toLabel) |
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)
Returns
true if o connects the same two vertices
regardless of the edge orientation. |
<T 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)
Edge
public boolean equals(Object o)
Edge
true
if o
connects the same two vertices
regardless of the edge orientation.public <T extends Edge> T flip()
Edge
from
and to
vertices swapped.public int from()
Edge
public int to()
Edge
Copyright © 2012. All Rights Reserved.