Decompose one or more graphs into their connected components

ccomps

  • Decompose graphs into their connected components.
    Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`.
    More information: <https://graphviz.org/pdf/ccomps.1.pdf>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install ccomps on any operating system with command-not-found.com