Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Vertex Class Reference

#include <Vertex.h>

Inheritance diagram for Vertex::

TaggedObject List of all members.

Public Methods

 Vertex (int tag, int ref, double weight=0, int color=0)
virtual ~Vertex ()
virtual void setWeight (double newWeight)
virtual void setColor (int newColor)
virtual void setTmp (int newTmp)
virtual int getRef (void) const
virtual double getWeight (void) const
virtual int getColor (void) const
virtual int getTmp (void) const
virtual int addEdge (int otherTag)
virtual int getDegree (void) const
virtual const IDgetAdjacency (void) const
virtual void Print (ostream &s, int flag=0)

Constructor & Destructor Documentation

Vertex::Vertex ( int tag,
int ref,
double weight = 0,
int color = 0 )
 

Definition at line 39 of file Vertex.cpp.

Vertex::~Vertex ( ) [virtual]
 

Definition at line 46 of file Vertex.cpp.


Member Function Documentation

void Vertex::Print ( ostream & s,
int flag = 0 ) [virtual]
 

A pure virtual function. The component is to output itself to the output stream {s}. The integer {flag} can be used to select just what should be output, by default is passed.

Reimplemented from TaggedObject.

Definition at line 124 of file Vertex.cpp.

int Vertex::addEdge ( int otherTag ) [virtual]
 

Definition at line 94 of file Vertex.cpp.

Referenced by Graph::addEdge(), and Domain::buildEleGraph().

const ID & Vertex::getAdjacency ( void ) const [virtual]
 

Definition at line 118 of file Vertex.cpp.

Referenced by Graph::addVertex(), Domain::buildEleGraph(), RCM::number(), Metis::number(), Metis::partition(), SymArpackSOE::setSize(), SparseGenColLinSOE::setSize(), ProfileSPDLinSOE::setSize(), BandSPDLinSOE::setSize(), BandGenLinSOE::setSize(), and BandArpackSOE::setSize().

int Vertex::getColor ( void ) const [virtual]
 

Definition at line 82 of file Vertex.cpp.

int Vertex::getDegree ( void ) const [virtual]
 

Definition at line 112 of file Vertex.cpp.

Referenced by Graph::addVertex().

int Vertex::getRef ( void ) const [virtual]
 

Definition at line 70 of file Vertex.cpp.

Referenced by RCM::number(), and Metis::number().

int Vertex::getTmp ( void ) const [virtual]
 

Definition at line 88 of file Vertex.cpp.

Referenced by RCM::number().

double Vertex::getWeight ( void ) const [virtual]
 

Definition at line 76 of file Vertex.cpp.

void Vertex::setColor ( int newColor ) [virtual]
 

Definition at line 58 of file Vertex.cpp.

Referenced by Metis::partition().

void Vertex::setTmp ( int newTmp ) [virtual]
 

Definition at line 64 of file Vertex.cpp.

Referenced by RCM::number(), and Metis::number().

void Vertex::setWeight ( double newWeight ) [virtual]
 

Definition at line 52 of file Vertex.cpp.


The documentation for this class was generated from the following files:
Copyright Contact Us