GEN_AT_GRAPH(1)

πŸ“¦
version 0.8.6 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– gen_at_graph(1) πŸ’–

okay so bestie, welcome to the little Perl script that literally just births random graphs out of thin air ✨ it lives in the User Contributed Perl Documentation corner of your system, and yes, it's giving chaotic academic energy in the best way possible πŸŽ€


🌸 NAME 🌸

gen_at_graph β€” the icon, the moment, the girlboss that generates a random graph for use in algotutor πŸ‘‘


✨ SYNOPSIS ✨

gen_at_graph [OPTION] ...

that's it. that's the whole vibe. options, plural, bestie β€” bring as many as you want πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So like, gen_at_graph generates a random graph for use in algotutor. 🫢

Now, currently the only type of graph it can generate is a rectangular grid of vertices. That's the whole menu, okay, no cap. But here's the slay part: each vertex is connected to at most 8 adjacent vertices around it β€” so every single node is lowkey surrounded by its little grid besties (up to eight of them, thinking about it in every direction) 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -r ROWS β€” generate ROWS rows of vertices. how many rows we doing, bestie? you decide 🌸
  • -c COLS β€” generate COLS columns of vertices. the vertical girlies to go with your horizontal ones πŸ’œ
  • -w WIDTH β€” make each grid cell WIDTH pixel wide. width moment ✨
  • -h HEIGHT β€” make each grid cell HEIGHT pixel high. and the height to match, because we do not do squished cells in this house πŸ’…
  • -l LOWER β€” make all random numbers greater than or equal to LOWER. that's your inclusive floor, she's generous 🫢
  • -u UPPER β€” make all random numbers less than (but never equal to) UPPER. your exclusive ceiling β€” and not me stressing that it's never equal to it, because fr fr it is never, ever equal to it 😭
  • -d PATTERN β€” specify the probability of generating each diagonal. the diagonal drama dial, as I like to call it πŸ¦‹

πŸ’œ LICENSE πŸ’œ

This code is distributed under the GNU General Public License πŸ“œ periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Chao-Kuei Hung β€” ckhung AT cyut DOT edu DOT tw πŸ’Œ (yes the AT and DOT are doing the heavy lifting there, that's just how it's written, don't come for me)


🌈 SEE ALSO 🌈

Please see /usr/share/doc/algotutor/doc/ for the full set of documentations. πŸ“š like, the whole set. go look. iykyk 🧚


and that's the tea, bestie πŸ“ this page came to you via perl v5.34.0, dated 2022-04-12 β€” so it's got a lil vintage thing going on and honestly? iconic. now go generate some graphs, you main character πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from