Graph Class Reference
[Charm++ Load Balancing FrameworkParFUM Unstructured Mesh Framework]

#include <graph.h>

Collaboration diagram for Graph:

Collaboration graph
[legend]

Public Member Functions

 Graph (int elems)
 ~Graph ()
void add (int elem1, int elem2)
int elems (int elem)
void toAdjList (int *&adjStart, int *&adjList)
 Graph (int elems)
 ~Graph ()
void add (int elem1, int elem2)
int elems (int elem)
void toAdjList (int *&adjStart, int *&adjList)

Data Fields

int V
int E
VertexRecordvertices
intedges
int currentVertex
int currentEdge

Private Attributes

int nelems
NListnbrs
NListnbrs

Detailed Description

Definition at line 24 of file graph.h.


Constructor & Destructor Documentation

Graph::~Graph (  )  [inline]

Definition at line 61 of file partition.C.

References nbrs.

Graph::Graph ( int  elems  ) 

Graph::~Graph (  )  [inline]

Definition at line 63 of file partition.C.

References nbrs.


Member Function Documentation

int Graph::elems ( int  elem  )  [inline]

Definition at line 63 of file partition.C.

References elem, NList::getnn(), nbrs, and nelems.

Referenced by toAdjList().

void Graph::add ( int  elem1,
int  elem2 
)

int Graph::elems ( int  elem  )  [inline]

Definition at line 65 of file partition.C.

References elem, NList::getnn(), nbrs, and nelems.

void Graph::toAdjList ( int *&  adjStart,
int *&  adjList 
)


Field Documentation

int Graph::V

Definition at line 25 of file graph.h.

Referenced by RecBisectBfLB::addToQ(), g_initGraph(), g_nextVertex(), g_printGraph(), generateRandomGraph(), RecBisectBfLB::partitionInTwo(), and RecBisectBfLB::work().

int Graph::E

Definition at line 25 of file graph.h.

Referenced by g_initGraph(), g_printGraph(), and generateRandomGraph().

VertexRecord* Graph::vertices

Definition at line 26 of file graph.h.

Referenced by g_addEdge(), g_finishVertex(), g_freeGraph(), g_getNeighbor(), g_initGraph(), g_nextVertex(), g_numNeighbors(), g_printGraph(), generateRandomGraph(), and graph_weightof().

int* Graph::edges

Definition at line 27 of file graph.h.

Referenced by g_addEdge(), g_freeGraph(), g_getNeighbor(), g_initGraph(), g_printGraph(), and generateRandomGraph().

int Graph::currentVertex

Definition at line 28 of file graph.h.

Referenced by g_addEdge(), g_finishVertex(), g_initGraph(), and g_nextVertex().

int Graph::currentEdge

Definition at line 29 of file graph.h.

Referenced by g_addEdge(), g_finishVertex(), g_initGraph(), and g_nextVertex().

int Graph::nelems [private]

Definition at line 57 of file partition.C.

Referenced by add(), elems(), Graph(), and toAdjList().

NList* Graph::nbrs [private]

Definition at line 58 of file partition.C.

Referenced by add(), elems(), Graph(), toAdjList(), and ~Graph().

NList* Graph::nbrs [private]

Definition at line 60 of file partition.C.


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:33:29 2008 for Charm++ by  doxygen 1.5.1