Function adj_matrix_edge_addu
Defined in File adj_matrix.h
Function Documentation
-
status_t adj_matrix_edge_addu(struct adj_matrix *matrix, size_t u, size_t v)
Add an undirected edge to the graph.
Adding an edge (u, v) will also automatically add an edge (v, u) with the same value (1.0). This is OK because the having a graph that is both undirected and weighted is disallowed, and was checked during initialization.
- Parameters:
matrix – The matrix handle.
u – Vertex #1.
v – Vertex #2.
- Returns: