FLINT3.7.0-dev

bool_mat_directed_path, bool_mat_directed_cycle

Synopsis#include <flint/bool_mat.h>
void bool_mat_directed_path(bool_mat_t A)source
void bool_mat_directed_cycle(bool_mat_t A)source

Set 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).