CmdID

CmdID / Commands

gc

Count nodes, edges, connected components, or clusters in Graphviz .dot files. tldr-pages

On Windows File gc.exe

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Count nodes and edges in a file

gc path/to/file.dotIdentify

Count only nodes

gc -n path/to/file.dotIdentify

Count only edges

gc -e path/to/file.dotIdentify

Count connected components

gc -c path/to/file.dotIdentify

Display help

Windows

from tldr-pages, CC BY 4.0

In PowerShell, this command is an alias of Get-Content (equivalent to cat) when the original gc program (<https://graphviz.org/pdf/gc.1.pdf>) is not installed.

Determine whether gc is currently configured to GraphViz's gc or PowerShell's Get-Content by printing its help documentation