Social Network 1.0.0
The second major course output (MCO2) for CCDSALG.
Loading...
Searching...
No Matches
Graph Struct Reference

A collection implementing the adjacency list data graph structure using arrays. More...

#include <graph.h>

Public Attributes

size_t vertex_count
 The number of vertices the graph contains.
Vertex adjacencies_by_vertex [MAX_GRAPH_VERTEX_COUNT][MAX_GRAPH_VERTEX_COUNT]
 The vertices adjacent to the vertices contained by the graph.
size_t adjacencies_length
 The number of vertex adjacency arrays the graph contains.

Detailed Description

A collection implementing the adjacency list data graph structure using arrays.

Member Data Documentation

◆ adjacencies_by_vertex

Vertex Graph::adjacencies_by_vertex[MAX_GRAPH_VERTEX_COUNT][MAX_GRAPH_VERTEX_COUNT]

The vertices adjacent to the vertices contained by the graph.

This contains arrays of vertices, where the first vertex is the key, and the rest are the vertices adjacent to the key.


The documentation for this struct was generated from the following file: