HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ccomps — Decompose graphs into their connected components. Graphviz filters: `acyclic`, `bcomps`, `comps`, `e

Submitted by: @import:tldr-pages··
0
Viewed 0 times
connectedcommandgraphscliintotheirdecomposeccomps

Problem

How to use the ccomps command: Decompose graphs into their connected components. Graphviz filters: acyclic, bcomps, comps, edgepaint, gvcolor, gvpack, mingle, nop, sccmap, tred, and unflatten. More information: <https://graphviz.org/pdf/ccomps.1.pdf>.

Solution

ccomps — Decompose graphs into their connected components. Graphviz filters: acyclic, bcomps, comps, edgepaint, gvcolor, gvpack, mingle, nop, sccmap, tred, and unflatten. More information: <https://graphviz.org/pdf/ccomps.1.pdf>.

Decompose one or more graphs into their connected components:
ccomps {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}


Print the number of nodes, edges, and connected components in one or more graphs:
ccomps -v -s {{path/to/input1.gv path/to/input2.gv ...}}


Write each connected component to numbered filenames based on output.gv:
ccomps -x -o {{path/to/output.gv}} {{path/to/input1.gv path/to/input2.gv ...}}


Display help:
ccomps -?

Code Snippets

Decompose one or more graphs into their connected components

ccomps {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}

Print the number of nodes, edges, and connected components in one or more graphs

ccomps -v -s {{path/to/input1.gv path/to/input2.gv ...}}

Write each connected component to numbered filenames based on `output.gv`

ccomps -x -o {{path/to/output.gv}} {{path/to/input1.gv path/to/input2.gv ...}}

Display help

ccomps -?

Context

tldr-pages: common/ccomps

Revisions (0)

No revisions yet.