data_structures
Functions
graph_adjacent.c File Reference
#include "graph.h"
+ Include dependency graph for graph_adjacent.c:

Go to the source code of this file.

Functions

int graph_adjacent (const t_graph *graph, const void *v1, const void *v2)
 Are two vertices in the graph adjacent to each other? More...
 

Function Documentation

◆ graph_adjacent()

int graph_adjacent ( const t_graph graph,
const void *  v1,
const void *  v2 
)

Are two vertices in the graph adjacent to each other?

Parameters
v1One vertex
v2The other vertex
Returns
1 if the vertices are adjacent, 0 otherwise

Definition at line 16 of file graph_adjacent.c.