LinuxCommandLibrary

bcomps

Decompose graphs into biconnected components

TLDR

Decompose graph into biconnected components

$ bcomps [input.gv] > [output.gv]
copy
Print number of blocks and cutvertices
$ bcomps -v [input.gv]
copy
Print each component as separate graph
$ bcomps -x [input.gv]
copy
Print block-cutvertex tree
$ bcomps -t [input.gv]
copy
Write components to separate files
$ bcomps -o [output.gv] [input.gv]
copy
Silent mode with statistics only
$ bcomps -sv [input.gv]
copy

SYNOPSIS

bcomps [-stvx?] [-o outfile] [files]

DESCRIPTION

bcomps decomposes graphs into their biconnected components, printing the components to standard output. A biconnected component is a maximal subgraph that remains connected after removal of any single vertex.
The tool is part of the Graphviz graph visualization suite and works with DOT language graph files.

PARAMETERS

-s

Silent mode; no output graph printed (implies -v)
-t
Print the underlying block-cutvertex tree
-v
Print number of blocks and cutvertices
-x
Print each biconnected component as separate root graph
-o outfile
Write each root graph to different file derived from outfile
-?
Display help information

OUTPUT FORMAT

By default, each input graph is printed with blocks as subgraphs. Subgraph names concatenate the input graph name, "bcc", and the block number.

RETURN VALUES

0

All input graphs are biconnected
non-zero
Any graph has multiple blocks or an error occurred

CAVEATS

Input files must be in Graphviz DOT format. The tool identifies articulation points (cutvertices) that separate components. Large graphs may require significant processing time.

SEE ALSO

ccomps(1), gc(1), dot(1), gvpr(1), sccmap(1), tred(1), acyclic(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community