Definition
An instance S of the data type
node
set is a subset of
the nodes of a graph G. S is said to be valid for the nodes
of G.
#include < LEDA/node_set.h >
Creation
| node_set | S(graph G) | creates an instance S of type
node |
Operations
Implementation
A node set S for a graph G is implemented by a combination of a list L of nodes and a node array of list_items associating with each node its position in L. All operations take constant time, except for clear which takes time O(S). The space requirement is O(n), where n is the number of nodes of G.
© Copyright 1995-2002, Algorithmic Solutions Software GmbH. All rights reserved.
2002-10-16