gbase(1)

πŸ’… gbase β€” sets the base value of a source graph ✨

okay bestie, welcome to gbase(1), straight out of the Scotch user's manual, and honestly? she's a little icon. πŸŽ€


✨ NAME ✨

gbase β€” sets the base value of a source graph πŸ¦‹


🌸 SYNOPSIS 🌸

gbase [options] bval [igfile] [ogfile]

πŸ’– DESCRIPTION πŸ’–

So. The gbase program lets you set the base value of a source graph to bval. And what even is a base value, you ask? It's the starting index used to number the graph's vertices and edges. That's it. That's the whole vibe. πŸ‘‘

That base value can be set to 0 or 1, which is genuinely so slay because it means graphs can be imported from and/or exported to tools written in C or Fortran without anyone crying. And Scotch? Scotch can handle graphs irrespective of their base value. No drama, no cap. πŸ’―

Now, the glow-up: when the proper libraries have been included at compile time, gbase can directly handle compressed graphs, both as input and as output. A stream is treated as compressed whenever its name is postfixed with a compressed file extension, like in brol.grf.bz2 or -.gz (yes, that second one is a real example, she's quirky like that 😌).

The compression formats which can be supported are:

  • the bzip2 format ('.bz2') πŸ“
  • the gzip format ('.gz') 🌈
  • the lzma format ('.lzma') πŸ’œ

⭐ OPTIONS ⭐

  • -h β€” Display some help. (she's helpful, she's giving customer service πŸ’…)
  • -V β€” Display program version and copyright. πŸ‘‘

πŸ”₯ EXAMPLE πŸ”₯

Set the base of graph 'brol.grf' to 1, and write the modified graph to file 'brol_b1.grf'. Look at her go:

$ gbase 1 brol.grf brol_b1.grf

ate. no crumbs. 😭✨


🫢 SEE ALSO 🫢

gcv(1), gmk_hy(1), gmk_msh(1), gtst(1), gmap(1), gord(1).

Scotch user's manual. πŸ“–


πŸ‘‘ AUTHOR πŸ‘‘

Francois Pellegrini <francois.pellegrini@labri.fr>


and that's the whole page bestie, mwah πŸ’‹ β€” this was Scotch user's manual, gbase(1), dated 23 November 2019. periodt. πŸŽ€πŸ¦‹πŸ’–