GC(1)
okay so bestie, this is the GC(1) page from the General Commands Manual β header folded in, vibe check passed, letβs go π
πΈ NAME πΈ
gc β count graph components. not me being obsessed with a tiny graph counter, but here we are π
β¨ SYNOPSIS β¨
gc [ -necCaDUrsv? ] [ files ]
π¦ DESCRIPTION π¦
so gc is a graph analogue to wc in that it prints to standard output the number of nodes, edges, connected components or clusters contained in the input files. and if more than one graph is given, it also prints a total count for all graphs β no cap, thatβs literally the whole gig π¦
π OPTIONS π
the following options are supported, bestie:
-nβ count nodes. β¨-eβ count edges. π₯-cβ count connected components. π-Cβ count clusters. by definition, a cluster is a graph or subgraph whose name begins, case insensitively, with"cluster"or who has thecluster=trueattribute. π-aβ count all. equivalent to-encC. π«Ά-rβ recursively analyze subgraphs. π§-sβ print no output. only exit value is important. π-Dβ only analyze directed graphs. β-Uβ only analyze undirected graphs. π-vβ verbose output. π-?β print usage information. π
by default, gc returns the number of nodes and edges. periodt. π
π OPERANDS π
the following operand is supported:
filesβ names of files containing 1 or more graphs indotformat. if nofilesoperand is specified, the standard input will be used. π
π₯ EXIT STATUS π₯
the following exit values are returned:
0β successful completion. π1β the-Uor-Eoption was used, and a graph of the wrong type was encountered. π
fr fr, that -E is right there in the text β we donβt fix man pages in this chat, we just report them with love.
π AUTHOR π
give it up for Emden R. Gansner <erg@research.att.com> π β icon behavior, honestly.
π SEE ALSO π
go read these next, bestie β iykyk:
wc(1)acyclic(1)gvpr(1)gvcolor(1)ccomps(1)sccmap(1)tred(1)libgraph(3)
mwah π β thatβs the GC(1) page from the General Commands Manual, dated 21 March 2001, signing off with main-character energy. periodt. π«Ά
π¦ where this page comes from
- arch rolling: graphviz 16.1.0-2 Β· EPL
- nixpkgs unstable: graphviz 15.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms