public class Edge extends Object implements Data, Comparable<Edge>, Serializable
Graph
,
Node
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Edge.Type
Enumeration of the different types of implemented edges.
|
Constructor and Description |
---|
Edge(String name,
String label)
Creates a new edge with name
name , label label |
Edge(String name,
String label,
List<Node> incidentNodes)
Creates a new edge with name
name , label label and incident nodes incidentNodes . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Edge edge) |
boolean |
equals(Object o) |
int |
getArity()
Returns the arity of this edge
|
List<Node> |
getIncidentNodes()
Returns the sequence of nodes incident to this edge
|
String |
getLabel()
Returns the label of this edge.
|
String |
getName()
Returns the name of this edge.
|
Edge.Type |
getType()
Returns the type of the data object.
|
int |
hashCode() |
String |
toString() |
public Edge(String name, String label)
name
, label label
name
- the name of the edgelabel
- the label of the edgepublic String getName()
public String getLabel()
public int getArity()
public List<Node> getIncidentNodes()
public int compareTo(Edge edge)
compareTo
in interface Comparable<Edge>