EnglishFrenchSpanish

OnWorks favicon

prune - Online in the Cloud

Run prune in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command prune that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


prune - Prune directed graphs

SYNOPSIS


prune [ -n node ] [ -N attrspec ] [ -v ] [ -(h|?) ] [ files ... ]

DESCRIPTION


prune reads directed graphs in the same format used by 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 gvpr(1). prune correctly handles cycles, loops and multi‐edges.

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, 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. prune writes the result to the stdout.

OPTIONS


-n name
Specifies name of node to prune.

-N attrspec
Specifies attribute that will be set (or changed if it exists) for any pruned node.
attrspec is a string of the form attr=value.

-v Verbose output.

-h -? Prints the usage and exits.

EXAMPLES


An input graph test.gv of the form

digraph DG {
A -> B;
A -> C;

B -> D;
B -> E;
}

, processed by the command

prune -n B test.gv

would produce the following output (the actual code might be formatted in a slightly
different way).

digraph DG {
A -> B;
A -> C;
}

Another input graph test.gv of the form

digraph DG {
A -> B;
A -> C;

B -> D;
B -> E;

C -> E;
}

(note the additional edge from C to E ), processed by the command

prune -n B -N color=red test.gv

results in

digraph DG {
B [color=red];
A -> B;
A -> C;
C -> E;
}

Node E has not been removed since its second parent C is not being pruned.

EXIT STATUS


prune returns 0 on successful completion. It returns 1 if an error occurs.

Use prune online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Programming Without Coding Technology
Programming Without Coding Technology
PWCT is not a Wizard for creating your
application in 1 2 3 steps. PWCT is a
general-purpose visual programming
language designed for novice and expert
program...
Download Programming Without Coding Technology
  • 3
    unitedrpms
    unitedrpms
    Join us in Gitter!
    https://gitter.im/unitedrpms-people/Lobby
    Enable the URPMS repository in your
    system -
    https://github.com/UnitedRPMs/unitedrpms.github.io/bl...
    Download unitedrpms
  • 4
    Windows Directory Statistics
    Windows Directory Statistics
    WinDirStat (Windows Directory
    Statistics) is a disk usage statistics
    viewer and cleanup tool for Windows. On
    start up, WinDirStat reads the whole
    directory tree...
    Download Windows Directory Statistics
  • 5
    DS4Windows
    DS4Windows
    DS4Window is an open-source program
    that will allow someone to get the
    experience of using a Playstation 4
    DualShock Controller on a PC by
    emulating a Xbox 360...
    Download DS4Windows
  • 6
    TDM-GCC MinGW Compiler
    TDM-GCC MinGW Compiler
    The most recent stable releases from the
    GCC compiler project, for 32-bit and
    64-bit Windows, cleverly disguised with
    a real installer & updater.
    Features:G...
    Download TDM-GCC MinGW Compiler
  • da...
    Download GeoServer
  • More »
  • Linux commands

    Ad