bool_mat_directed_path, bool_mat_directed_cycle
Synopsis
#include <flint/bool_mat.h>void bool_mat_directed_path(bool_mat_t A)sourcevoid bool_mat_directed_cycle(bool_mat_t A)sourceSet the square matrix A of order n to the adjacency matrix of the directed path 0 \to 1 \to \cdots \to n - 1, with A_{ij} = 1 exactly when j = i + 1, or of the directed cycle, with A_{ij} = 1 exactly when j \equiv i + 1 \pmod n. Throw an exception if A is not square.
Cite this page
The FLINT team, “bool_mat_directed_path, bool_mat_directed_cycle (bool_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/bool_mat/bool_mat_directed_path.html (generated 2026-10-20).
@misc{flint-doc-bool-mat-bool-mat-directed-path,
author = {{The FLINT team}},
title = {{bool\_mat\_directed\_path, bool\_mat\_directed\_cycle (bool\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/bool_mat/bool_mat_directed_path.html},
note = {Generated 2026-10-20}
}