gc.1 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. .TH GC 1 "21 March 2001"
  2. .SH NAME
  3. gc \- count graph components
  4. .SH SYNOPSIS
  5. .B gc
  6. [
  7. .B \-necCaDUrsv?
  8. ]
  9. [
  10. .I files
  11. ]
  12. .SH DESCRIPTION
  13. .B gc
  14. is a graph analogue to
  15. .B wc
  16. in that it prints to standard output
  17. the number of nodes, edges, connected components or clusters contained
  18. in the input files.
  19. It also prints a total count for
  20. all graphs if more than one graph is given.
  21. .SH OPTIONS
  22. The following options are supported:
  23. .TP
  24. .B \-n
  25. Count nodes.
  26. .TP
  27. .B \-e
  28. Count edges.
  29. .TP
  30. .B \-c
  31. Count connected components.
  32. .TP
  33. .B \-C
  34. Count clusters. By definition, a cluster is a graph or
  35. subgraph whose name begins with "cluster".
  36. .TP
  37. .B \-a
  38. Count all. Equivalent to
  39. .B \-encC
  40. .TP
  41. .B \-r
  42. Recursively analyze subgraphs.
  43. .TP
  44. .B \-s
  45. Print no output. Only exit value is important.
  46. .TP
  47. .B \-D
  48. Only analyze directed graphs.
  49. .TP
  50. .B \-U
  51. Only analyze undirected graphs.
  52. .TP
  53. .B \-v
  54. Verbose output.
  55. .TP
  56. .B \-?
  57. Print usage information.
  58. .LP
  59. By default,
  60. .I gc
  61. returns the number of nodes and edges.
  62. .SH OPERANDS
  63. The following operand is supported:
  64. .TP 8
  65. .I files
  66. Names of files containing 1 or more graphs in dot format.
  67. If no
  68. .I files
  69. operand is specified,
  70. the standard input will be used.
  71. .SH "EXIT STATUS"
  72. The following exit values are returned:
  73. .TP 4
  74. .B 0
  75. Successful completion.
  76. .TP
  77. .B 1
  78. The
  79. .B \-U
  80. or
  81. .B \-E
  82. option was used, and a graph of the wrong type was encountered.
  83. .SH AUTHOR
  84. Emden R. Gansner <[email protected]>
  85. .SH "SEE ALSO"
  86. wc(1), acyclic(1), gvpr(1), gvcolor(1), ccomps(1), sccmap(1), tred(1), libgraph(3)