Skip to content

Commit 44b6fe8

Browse files
committed
gc: add page
1 parent 9983c2a commit 44b6fe8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pages/common/gc.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# gc
3+
4+
> Count nodes, edges, connected components, or clusters in Graphviz `.dot` files.
5+
> By default, prints number of nodes and edges.
6+
> More information: <https://graphviz.org/pdf/gc.1.pdf>.
7+
8+
- Count nodes and edges in a file:
9+
10+
`gc {{path/to/file.dot}}`
11+
12+
- Count only nodes:
13+
14+
`gc -n {{path/to/file.dot}}`
15+
16+
- Count only edges:
17+
18+
`gc -e {{path/to/file.dot}}`
19+
20+
- Count connected components:
21+
22+
`gc -c {{path/to/file.dot}}`
23+
24+
- Display help:
25+
26+
`gc -?`

0 commit comments

Comments
 (0)