diff --git a/pages/common/gc.md b/pages/common/gc.md new file mode 100644 index 00000000000000..3cd444840bd09d --- /dev/null +++ b/pages/common/gc.md @@ -0,0 +1,24 @@ +# gc + +> Count nodes, edges, connected components, or clusters in Graphviz `.dot` files. +> More information: . + +- Count nodes and edges in a file: + +`gc {{path/to/file.dot}}` + +- Count only [n]odes: + +`gc -n {{path/to/file.dot}}` + +- Count only [e]dges: + +`gc -e {{path/to/file.dot}}` + +- Count [c]onnected components: + +`gc -c {{path/to/file.dot}}` + +- Display help: + +`gc -?`