Next:
The Class Description: Header:
Up:
The General Graph Class:
Previous:
The General Graph Class:
The Graph Class:
We begin with a discussion of the
Graph
class itself.
The Class Description: Header: graph.h
The Constructor and Destructor
Iterators
Overloaded I/O and Grab and Print:
Add a Node:
Gnode Constructor
Node Constructor
GnodePtrBag Add Agent
GnodePtrBagLink Constructor
Add an Edge:
Gedge Constructor:
GedgePtrBag Add:
GedgePtrBagLink Constructor
Find a Node:
GnodePtrBagIter Constructor:
Remove a Node:
GnodePtrBagManip Constructor:
The while loop:
The While Block:
The removeAll() Method:
A Sample Application:
Find an Edge:
Remove an Edge:
GedgePtrBagManip Constructor:
Gnode Edge Remove Agent:
GedgePtrBagManip remove() Agent
A Sample Application:
The Public Interface: nodes() and edges()
Jim Peterson
1999-05-17