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 AA of order nn to the adjacency matrix of the directed path 0→1→⋯→n−10 \to 1 \to \cdots \to n - 1, with Aij=1A_{ij} = 1 exactly when j=i+1j = i + 1, or of the directed cycle, with Aij=1A_{ij} = 1 exactly when j≡i+1(modn)j \equiv i + 1 \pmod n. Throw an exception if AA 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-11-02).