From OpenWetWare
Jump to: navigation, search

<HTML> <HEAD> <TITLE> C++ Couple </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD>


C++ Couple<VertexType, EdgeType>

Couple is a C++ template class for programming with <A href="">LabeledGraphs</A>. <p>Public methods:

<A href="#const">couple constructors & destructor</A>methods to allocate, copy, and deallocate couples                    
<A href="#oper">couple operators</A>assign and compare couples
<A href="#adjacent">adjacent</A>returns true if two vertex couples are adjacent

<A name="const">couple constructors and destructor</A>

couple(VertexType* const, VertexType* const, const EdgeType* const)
couple(const couple&)

The default couple constructor creates a <A href="">NULL</A> labeled couple consisting of a std::pair of vertex pointers initialized to <A href="">NULL</A>.

<A name="oper">couple operators</A>

bool operator<(const couple&) const
bool operator==(const couple&) const
bool operator!=(const couple&) const
couple& operator=(const couple&)

Couple comparison is unordered. <A href="">NULL</A> is considered less than all (non-<A href="">NULL</A>) values.
Vertex equality is unordered, i.e., couple(a, b) is equal to couple(b, a).

<A name="adjacent">adjacent</A>

bool adjacent(const couple&) const