org._3pq.jgrapht
Interface LabeledElement
public interface LabeledElement
An graph element (vertex or edge) that can have a label.
Object | getLabel()- Returns the element's label, or
null if element has no
label.
|
boolean | hasLabel()- Tests if this element has a label.
|
void | setLabel(Object label)- Sets the specified label object to this element.
|
getLabel
public Object getLabel()
Returns the element's label, or null if element has no
label.
- the element's label, or
null if element has no
label.
hasLabel
public boolean hasLabel()
Tests if this element has a label.
true if the element has a label, otherwise
false.
setLabel
public void setLabel(Object label)
Sets the specified label object to this element.
label - a label to set to this element.