org.jscience.computing.graph
Interface LabeledElement


public interface LabeledElement

An graph element (vertex or edge) that can have a label.

Since:
Jul 14, 2003

Method Summary
 java.lang.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(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, or null if element has no label.

Returns:
the element's label, or null if element has no label.

hasLabel

boolean hasLabel()
Tests if this element has a label.

Returns:
true if the element has a label, otherwise false.