PandA-2024.02
Data Structures | Macros | Typedefs | Functions | Variables
simple_API.h File Reference
#include <stddef.h>
Include dependency graph for simple_API.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Edge
 
struct  Graph
 

Macros

#define N_THREADS   8
 
#define MAX_VERTEX_NUMBER   1309073
 
#define MAX_EDGE_NUMBER   5309056
 

Typedefs

typedef unsigned int NodeId
 
typedef unsigned int EdgeId
 
typedef unsigned int PropertyId
 
typedef struct Edge Edge
 
typedef struct Graph Graph
 

Functions

static size_t getInDegree (Graph *graph, NodeId node)
 
static EdgegetInEdges (Graph *graph, NodeId node)
 
static size_t getOutDegree (Graph *graph, NodeId node)
 
static EdgegetOutEdges (Graph *graph, NodeId node)
 
void loadGraph (char *InVertexFileName, char *OutVertexFileName, char *InEdgeFileName, char *OutEdgeFileName)
 

Variables

Graph TheGraph
 
unsigned numAnswers
 
unsigned counter [N_THREADS]
 

Macro Definition Documentation

◆ MAX_EDGE_NUMBER

#define MAX_EDGE_NUMBER   5309056

Definition at line 26 of file simple_API.h.

◆ MAX_VERTEX_NUMBER

#define MAX_VERTEX_NUMBER   1309073

Definition at line 22 of file simple_API.h.

◆ N_THREADS

#define N_THREADS   8

Definition at line 7 of file simple_API.h.

Referenced by getOutEdges().

Typedef Documentation

◆ Edge

typedef struct Edge Edge

◆ EdgeId

typedef unsigned int EdgeId

Definition at line 12 of file simple_API.h.

◆ Graph

typedef struct Graph Graph

◆ NodeId

typedef unsigned int NodeId

Definition at line 11 of file simple_API.h.

◆ PropertyId

typedef unsigned int PropertyId

Definition at line 13 of file simple_API.h.

Function Documentation

◆ getInDegree()

static size_t getInDegree ( Graph graph,
NodeId  node 
)
inlinestatic

Definition at line 45 of file simple_API.h.

References Graph::inEdgesIDs, and Edge::node.

◆ getInEdges()

static Edge* getInEdges ( Graph graph,
NodeId  node 
)
inlinestatic

Definition at line 50 of file simple_API.h.

References Graph::inEdges, Graph::inEdgesIDs, and Edge::node.

◆ getOutDegree()

static size_t getOutDegree ( Graph graph,
NodeId  node 
)
inlinestatic

Definition at line 60 of file simple_API.h.

References Edge::node, and Graph::outEdgesIDs.

◆ getOutEdges()

static Edge* getOutEdges ( Graph graph,
NodeId  node 
)
inlinestatic

Definition at line 65 of file simple_API.h.

References counter, loadGraph(), N_THREADS, Edge::node, numAnswers, Graph::outEdges, Graph::outEdgesIDs, and TheGraph.

Here is the call graph for this function:

◆ loadGraph()

void loadGraph ( char *  InVertexFileName,
char *  OutVertexFileName,
char *  InEdgeFileName,
char *  OutEdgeFileName 
)

Definition at line 10 of file load_graph.c.

Variable Documentation

◆ counter

unsigned counter[N_THREADS]

Definition at line 3 of file data.c.

◆ numAnswers

unsigned numAnswers

Definition at line 5 of file data.c.

◆ TheGraph

Graph TheGraph

Definition at line 7 of file data.c.


Generated on Mon Feb 12 2024 13:02:57 for PandA-2024.02 by doxygen 1.8.13