PPL Logo

conv-ldb/generate.c File Reference

Go to the source code of this file.

Functions

int addEdge (VerticesListType *graph, EdgeListType *l, int fm, int to)
void addspEdge (VerticesListType *graph, EdgeListType *, int, int)
int edgeExists (VerticesListType *graph, int fm, int to)
static QmakeQueue ()
static int isEmpty (Q *)
static int dequeue (Q *)
VerticesListTypeInitVertices ()
static void printOut (VerticesListType *vertices)
static void copyOut (VerticesListType *vertices, int *npe, int *pes)
static void initGraph (VerticesListType *graph)
static void diameter (VerticesListType *graph)
static void AddEdges (VerticesListType *graph, EdgeListType *EdgeList, int V, int n)
void gengraph (int pV, int pC, int pseed, int *pes, int *npe, int tofile)
static void AddEdges (EdgeListType *EdgeList, int V, int n)
void fillAdjArray (Edge *edges, VerticesListType *vlist, int V, int E)
void sortAdjArrays (VerticesListType *vlist)
static void sort (int *adj, int fromIndex, int toIndex)
void countDegrees (Edge *edges, Vertex *vertRecs, int V, int E)
VerticesListTypeInitVertices (EdgeListType *EdgeList, int V, int E)
static void enqueue (Q *q, int i)

Variables

int V
int E
int C


Function Documentation

int addEdge ( VerticesListType graph,
EdgeListType l,
int  fm,
int  to 
)

void addspEdge ( VerticesListType graph,
EdgeListType ,
int  ,
int   
)

int edgeExists ( VerticesListType graph,
int  fm,
int  to 
)

static Q * makeQueue (  )  [static]

Definition at line 532 of file generate.c.

References Q::buf, Q::head, malloc(), Q::numElements, Q::size, and Q::tail.

Referenced by diameter().

static int isEmpty ( Q q  )  [static]

static int dequeue ( Q q  )  [static]

Definition at line 552 of file generate.c.

References Q::buf, Q::head, Q::numElements, and Q::size.

Referenced by diameter().

VerticesListType* InitVertices (  ) 

static void printOut ( VerticesListType vertices  )  [static]

static void copyOut ( VerticesListType vertices,
int npe,
int pes 
) [static]

static void initGraph ( VerticesListType graph  )  [static]

static void diameter ( VerticesListType graph  )  [static]

static void AddEdges ( VerticesListType graph,
EdgeListType EdgeList,
int  V,
int  n 
) [static]

Definition at line 128 of file generate.c.

References addEdge(), addspEdge(), calloc(), edgeExists(), free(), max(), and maxi().

Referenced by gengraph().

static void AddEdges ( EdgeListType EdgeList,
int  V,
int  n 
) [static]

Definition at line 94 of file generate.c.

References addEdge(), CrnRand(), and edgeExists().

void fillAdjArray ( Edge edges,
VerticesListType vlist,
int  V,
int  E 
)

void sortAdjArrays ( VerticesListType vlist  ) 

static void sort ( int adj,
int  fromIndex,
int  toIndex 
) [static]

void countDegrees ( Edge edges,
Vertex vertRecs,
int  V,
int  E 
)

Definition at line 322 of file generate.c.

References Vertex::adjListInd, Vertex::degree, Vertex::next, Edge::node1, and Edge::node2.

Referenced by InitVertices().

VerticesListType* InitVertices ( EdgeListType EdgeList,
int  V,
int  E 
)

static void enqueue ( Q q,
int  i 
) [static]

Definition at line 545 of file generate.c.

References Q::buf, Q::numElements, Q::size, and Q::tail.

Referenced by AMPI_GPU_Iinvoke(), and diameter().


Variable Documentation

int V

Definition at line 33 of file generate.c.

Referenced by RecBisectBfLB::addToQ(), and RecBisectBfLB::convertGraph().

int E

Definition at line 34 of file generate.c.

Referenced by RecBisectBfLB::convertGraph().

int C


Generated on Sun Feb 12 08:01:44 2012 for Charm++ by  doxygen 1.5.5