Glauber Dynamics in C
Simulation for Glauber Dynamics written in C11
edge.h
Go to the documentation of this file.
1
10typedef struct edge {
11 int v1;
12 int v2;
13 double weight;
15
22edge *edge_new(int v1, int v2, int weight);
23
26void edge_free(edge *e);
struct edge edge
typedef of the edge struct.
void edge_free(edge *e)
Free the memory taken by the edge.
Definition: edge.c:10
edge * edge_new(int v1, int v2, int weight)
Allocate a new edge with the corresponding entries for edge.
Definition: edge.c:4
Edge struct to be used as edges in the graph structs.
Definition: edge.h:10
int v1
The integer of vertex in graph of one end of edge.
Definition: edge.h:11
int v2
The integer of vertex in graph of the other end of edge.
Definition: edge.h:12
double weight
The weight for this particular edge.
Definition: edge.h:13