---
name: "gen_at_graph"
section: "1"
platform: "linux"
package: "algotutor"
version: "0.8.6-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gen_at_graph"
---

# gen\_at\_graph(1)

generates a random graph for use in algotutor.

## NAME

gen\_at\_graph - generates a random graph for use in algotutor.

## SYNOPSIS

**gen\_at\_graph** \[*OPTION*\] ...

## DESCRIPTION

gen\_at\_graph generates a random graph for use in algotutor. Currently the only type of graph it can generate is a rectangular grid of vertices. Each vertex is connected to at most 8 adjacent vertices around it.

## OPTIONS

- **-r** *ROWS*

  generate ROWS rows of vertices

- **-c** *COLS*

  generate COLS columns of vertices

- **-w** *WIDTH*

  make each grid cell WIDTH pixel wide

- **-h** *HEIGHT*

  make each grid cell HEIGHT pixel high

- **-l** *LOWER*

  make all random numbers greater than or equal to LOWER

- **-u** *UPPER*

  make all random numbers less than (but never equal to) UPPER

- **-d** *PATTERN*

  specify the probability of generating each diagonal

## LICENSE

This code is distributed under the GNU General Public License

## AUTHOR

**Chao-Kuei Hung** ckhung AT cyut DOT edu DOT tw

## SEE ALSO

Please see /usr/share/doc/algotutor/doc/ for the full set of documentations.
