BOTCH-EXTRACT-SCC(1)
π BOTCH-EXTRACT-SCC(1) β botch tools β¨
okay bestie, welcome to botch-extract-scc, a little tool from the botch toolbox that pulls every strongly connected component out of a graph and gives each one its own cute lil file π
β¨ NAME β¨
botch-extract-scc β extract all strongly connected components π¦
πΈ SYNOPSIS πΈ
botch-extract-scc [options] graph.xml [prefix]
π DESCRIPTION π
so basically, this extracts the strongly connected components (SCC) from an input graph. the graph can be in GraphML or dot format, and honestly? iconic of it.
Each strongly connected component gets stored as one file each, either right in the current directory or in the directory you tell it about with the --outdir option. you choose, queen π
The file names that were generated for them get printed on standard output. so you'll literally see every file it made, no cap.
By default, that filename is of the format:
PREFIX_VERTEX_SIZE.EXT
where:
PREFIXβ can be set on the command line (that's the[prefix]argument, bestie)VERTEXβ defaults to the vertex ID chosen by networkSIZEβ the size of the SCCEXTβ isxmlby default, but you can change it with the--extensionoption
The whole point of this naming scheme is to reduce the possibility that two output graph files happen to have the same name. smart, honestly. and if you want them even more unique, you can use the --outfnamevert and --outfnameattr options, which refine the string that will be printed for VERTEX. slay π₯
π OPTIONS π
-h,--helpβ show help. bestie behavior fr fr π--outdir=DIRβ output directory. the default is the current directory.--outfnamevert=VERTβ this option picks the set of vertices from which the smallest one (by string comparison of the attribute determined by the--outfnameattroption) will be chosen to be stored in place ofVERTEXin the output file name. theVERTargument is a key/value pair (separated by a colon) of a graph attribute and its value. by default (so, without this option), all vertices of the graph are considered.
The special key "__ID__" allows one to select the unique vertex identifier. π«
This option can be specified more than once. The final set of vertices is chosen such that all vertices match all key/value pairs. Multiple --outfnamevert options thus form a logical conjunction (they are AND-ed together). π«Ά
--outfnameattr=attributeβ this option picks the vertex attribute that is to be printed inVERTEXin the output file name.--extension=EXTβ output files have extensionEXT. default isxml. this option also governs the output format! thexmlextension saves in GraphML format, while thedotextension saves in the dot format. two jobs, one flag, she's versatile π-v,--verboseβ be verbose. say more. spill the tea β
π EXAMPLE π
Extract the strongly connected components of a buildgraph and store them in the directory "out", prefixing each filename with "cyclic", and let the VERTEX value be the cudfname field of source packages only.
botch-extract-scc --verbose --outdir=out --outfnameattr=cudfname --outfnamevert type:src buildgraph.xml cyclic
look at that command. she ate and left no crumbs π
π BUGS π
See <http://bugs.debian.org/botch>.
(yes bestie, bugs happen, go report them, it's giving community service β¨)
π¦ SEE ALSO π¦
Debian doc-base Manual /usr/share/doc/botch/wiki/Home.html
π AUTHOR π
This man page was written by Johannes Schauer. Botch is written by Johannes Schauer and Pietro Abate.
π COPYRIGHT π
Copyright 2012-2014 Johannes Schauer, Pietro Abate
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. A special linking exception to the GNU Lesser General Public License applies to this library, see the COPYING file for more information.
β οΈ real talk: that license text is legal, so it stays exactly as-is. no remixing the LGPL, bestie, that's not the vibe π
okay that's the whole page!! this was documented with perl v5.36.0 and dated 2023-02-17, and honestly? iconic energy. go extract some strongly connected components, bestie, you got this πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: botch 0.24-2 Β· LGPL-3.0-or-later WITH OCaml-linking exception
- ubuntu noble: botch 0.24-2 Β· LGPL-3.0-or-later WITH OCaml-linking exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms