class GraphNumberer : public MovableObject


Inheritance:


Public Methods

GraphNumberer(int classTag)
virtual ~GraphNumberer()
virtual const ID& number(Graph &theGraph, int lastVertex = -1)
virtual const ID& number(Graph &theGraph, const ID &lastVertices)

Inherited from MovableObject:

Public Methods

int getClassTag(void) const
int getDbTag(void) const
void setDbTag(int dbTag)
virtual int sendSelf(int commitTag, Channel &theChannel)
virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Documentation

GraphNumberer is an abstract class. The GraphNumberer class defines the interface that all programmers must provide when introducing new GraphNumberer subclasses. A GraphNumberer is an algorithmic class for numbering the Vertices of a Graph; that is assigning a unique integer value (0 through numVertex -1) to each Vertex (uses tmp variable of Vertex) of the Graph.

GraphNumberer(int classTag)

The integer classTag is passed to the MovableObject classes constructor

virtual ~GraphNumberer()

Does nothing

virtual const ID& number(Graph &theGraph, int lastVertex = -1)

This is the method invoked to perform the graph numbering, that is to assign a unique integer 1 through numVertex, to each Vertex in the Graph. Returns an ordered ID containing the vertex references in the order of the numbering, i.e. ID(0) contains the integer reference for the vertex assigned the number 1, ID(1) contains the integer reference for the vertex assigned the number 2 and so on. A side effect of the numbering is that the Tmp variable of each vertex is set to the number assigned to that vertex. If lastVertex is not -1 the Vertex whose tag is given by lastVertex should be numbered last (it does not have to be though THIS MAY CHANGE).

virtual const ID& number(Graph &theGraph, const ID &lastVertices)

This is the method invoked to perform the graph numbering, that is to assign a unique integer 1 through numVertex, to each Vertex in the Graph. Returns an ordered ID containing the vertex references in the order of the numbering, i.e. ID(0) contains the integer reference for the vertex assigned the number 1, ID(1) contains the integer reference for the vertex assigned the number 2 and so on. A side effect of the numbering is that the Tmp variable of each vertex is set to the number assigned to that vertex. lastVertices is used as a hint to indicate that these Vertices should be numbered last (they do not have to be though THIS MAY CHANGE).


Direct child classes:
RCM
Metis

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us