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. ππ¦π
π¦ where this page comes from
- debian bookworm: scotch 7.0.3-2 Β· CeCILL-C
- debian trixie: scotch 7.0.7-1 Β· CeCILL-C
- ubuntu jammy: scotch 6.1.3-1 Β· CeCILL-C
- ubuntu noble: scotch 7.0.4-1ubuntu2 Β· CeCILL-C
- ubuntu questing: scotch 7.0.5-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms