Graph Class Reference

#include <Graph.h>

Inheritance diagram for Graph:

ArrayGraph DOF_Graph DOF_GroupGraph List of all members.

Public Member Functions

 Graph ()
 Graph (int numVertices)
 Graph (TaggedObjectStorage &theVerticesStorage)
 Graph (Graph &other)
virtual ~Graph ()
virtual bool addVertex (Vertex *vertexPtr, bool checkAdjacency=true)
virtual int addEdge (int vertexTag, int otherVertexTag)
virtual VertexgetVertexPtr (int vertexTag)
virtual VertexItergetVertices (void)
virtual int getNumVertex (void) const
virtual int getNumEdge (void) const
virtual int getFreeTag (void)
virtual VertexremoveVertex (int tag, bool removeEdgeFlag=true)
virtual int merge (Graph &other)
virtual void Print (OPS_Stream &s, int flag=0)
int sendSelf (int commitTag, Channel &theChannel)
int recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Friends

OPS_Streamoperator<< (OPS_Stream &s, Graph &M)

Detailed Description

Definition at line 52 of file Graph.h.


Constructor & Destructor Documentation

Graph::Graph (  ) 

Definition at line 42 of file Graph.cpp.

Graph::Graph ( int  numVertices  ) 

Definition at line 50 of file Graph.cpp.

Graph::Graph ( TaggedObjectStorage theVerticesStorage  ) 

Graph::Graph ( Graph other  ) 

Graph::~Graph (  )  [virtual]

Definition at line 107 of file Graph.cpp.

References TaggedObjectStorage::clearAll().


Member Function Documentation

int Graph::getNumEdge ( void   )  const [virtual]

Reimplemented in ArrayGraph.

Definition at line 243 of file Graph.cpp.

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

int Graph::getFreeTag ( void   )  [virtual]

Definition at line 249 of file Graph.cpp.

Referenced by ParallelNumberer::mergeSubGraph().

Vertex * Graph::removeVertex ( int  tag,
bool  removeEdgeFlag = true 
) [virtual]

Definition at line 255 of file Graph.cpp.

References opserr, and TaggedObjectStorage::removeComponent().

void Graph::Print ( OPS_Stream s,
int  flag = 0 
) [virtual]

Definition at line 311 of file Graph.cpp.

References TaggedObjectStorage::Print().

Referenced by MyRCM::number(), and operator<<().


Friends And Related Function Documentation

OPS_Stream& operator<< ( OPS_Stream s,
Graph M 
) [friend]

Definition at line 317 of file Graph.cpp.


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

Generated on Mon Oct 23 15:05:43 2006 for OpenSees by doxygen 1.5.0