diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1 | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1')
| -rw-r--r-- | Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1 | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1 b/Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1 new file mode 100644 index 0000000..d69caf6 --- /dev/null +++ b/Master/Agile Software Development/TestApp/dist/lib/graphviz/share/man/man1/prune.1 @@ -0,0 +1,155 @@ +.\" Copyright (c) 2002 Marcus Harnisch <marcus.harnisch@gmx.net> +.\" +.\" This is free documenation. It is provided to you without any +.\" warranty that it is useful or that you can understand it. +.\" +.\" You are granted the right to use and redistribute the source code +.\" or parts of it (even single words and letters), provided that the +.\" copyright notice and the license terms will not be removed. +.\" +.TH prune 1 + +.SH NAME +prune \- Prune directed graphs +.SH SYNOPSIS +.B prune +[ +.BI \-n " node" +] +[ +.BI \-N " attrspec" +] +[ +.I files ... +] +.SH DESCRIPTION +.B prune +reads directed graphs in the same format used by +.B dot(1) +and removes subgraphs rooted at nodes specified on the +command line via options. These nodes themselves will not be removed, +but can be given attributes so that they can be easily located by a +graph stream editor such as +.B gpr(1). +.B prune +correctly handles cycles, loops and multi\(hyedges. + +Both options can appear multiple times on the command line. All +subgraphs rooted at the respective nodes given will then be +processed. If a node does not exist, +.B prune +will skip it and print a warning message to stderr. +If multiple attributes are given, they will be applied to +all nodes that have been processed. +.B prune +writes the result to the stdout. +.SH OPTIONS +.TP +.BI \-n " name" +Specifies name of node to prune. +.TP +.BI \-N " attrspec" +Specifies attribute that will be set (or changed if it exists) for any +pruned node. +.I attrspec +is a string of the form +.IR attr "=" value. + +.SH EXAMPLES +An input graph +.I test.dot +of the form +.PP + digraph DG { +.br + A \-> B; +.br + A \-> C; +.br + +.br + B \-> D; +.br + B \-> E; +.br + } +.br + +, processed by the command +.PP + prune \-n B test.dot +.PP +would produce the following output (the actual code might be formatted +in a slightly different way). +.PP + digraph DG { +.br + A \-> B; +.br + A \-> C; +.br + } +.br + +Another input graph +.I test.dot +of the form +.PP + digraph DG { +.br + A \-> B; +.br + A \-> C; +.br + +.br + B \-> D; +.br + B \-> E; +.br + +.br + C \-> E; +.br + } +.br + +(note the additional edge from +.I C +to +.I E +), processed by the command +.PP + prune \-n B \-N color=red test.dot +.PP +results in +.PP + digraph DG { +.br + B [color=red]; +.br + A \-> B; +.br + A \-> C; +.br + C \-> E; +.br + } +.br + +Node +.I E +has not been removed since its second parent +.I C +is not being pruned. + +.SH "EXIT STATUS" +.B prune +returns 0 on successful completion. +It returns 1 if an error occurs. +.SH SEE ALSO +.BR dot (1), +.BR gpr (1) + +.SH AUTHOR +Marcus Harnisch <marcus.harnisch@gmx.net> |
