Package org._3pq.jgrapht
Interface LabeledElement
-
public interface LabeledElementAn graph element (vertex or edge) that can have a label.- Since:
- Jul 14, 2003
- Author:
- Barak Naveh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetLabel()Returns the element's label, ornullif element has no label.booleanhasLabel()Tests if this element has a label.voidsetLabel(java.lang.Object label)Sets the specified label object to this element.
-
-
-
Method Detail
-
setLabel
void setLabel(java.lang.Object label)
Sets the specified label object to this element.- Parameters:
label- a label to set to this element.
-
getLabel
java.lang.Object getLabel()
Returns the element's label, ornullif element has no label.- Returns:
- the element's label, or
nullif element has no label.
-
hasLabel
boolean hasLabel()
Tests if this element has a label.- Returns:
trueif the element has a label, otherwisefalse.
-
-