Forrest logo
tool overview
On this page you find all important commands for the CLI tool ccomps. If the command you are looking for is missing please ask our AI.

ccomps

The ccomps command line tool is a component separator and output generator within the Graphviz software package. Graphviz is an open-source graph visualization software that allows users to create diagrams and visual representations of complex networks and relationships.

ccomps is specifically designed to partition a graph into connected components (subgraphs) based on the nodes' connectivity. It takes input in DOT format, which is a plain text graph description language used by Graphviz, and generates output in DOT format or other supported file formats.

When executed, ccomps analyzes the connectivity of the input graph, identifies all the connected components, and assigns each node to its respective component. It generates a separate subgraph for each component, making it easy to isolate and analyze different portions of a larger graph.

The command line options for ccomps allow users to specify the input file, control the output file format, and customize various aspects of the graph generation process. Overall, ccomps is a useful tool for partitioning and analyzing large graphs with multiple connected components.

List of commands for ccomps:

  • ccomps:tldr:13dd2 ccomps: Display help for `ccomps`.
    $ ccomps -?
    try on your machine
    explain this command
  • ccomps:tldr:4a598 ccomps: Decompose one or more graphs into their connected components.
    $ ccomps ${path-to-input1-gv} ${path-to-input2-gv ---} > ${path-to-output-gv}
    try on your machine
    explain this command
  • ccomps:tldr:53f1f ccomps: 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 ---}
    try on your machine
    explain this command
  • ccomps:tldr:5da1f ccomps: 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 ---}
    try on your machine
    explain this command
tool overview