net.sourceforge.combean.interfaces.graph.containers
Interface NodeSet

Package class diagram package NodeSet
All Superinterfaces:
FixedNodeCollection, FixedNodeSet
All Known Implementing Classes:
NodeNumberingAsNodeSet, SetAsNodeSet

public interface NodeSet
extends FixedNodeSet

A set of node (similar to a java.util.Set).


Method Summary
 boolean add(Node v)
          Add a node to the set.
 void clear()
          Remove all elements from the set.
 boolean remove(Node v)
          Remove a node from the set.
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.containers.FixedNodeSet
contains, size
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.containers.FixedNodeCollection
isEmpty, iterator
 

Method Detail

add

boolean add(Node v)
Add a node to the set. If the node is already contained in the set, nothing happens.

Parameters:
v - the node to be added.
Returns:
true if node has been added.

remove

boolean remove(Node v)
Remove a node from the set. If the node is not contained in the set, nothing happens.

Parameters:
v - the node to be removed.
Returns:
true if node has been removed.

clear

void clear()
Remove all elements from the set.