![]() |
|
This class is used to produce printable graphs of Vdf networks. More...
#include <grapher.h>
Static Public Member Functions | |
Static API | |
| static VDF_API void | GraphToFile (const VdfNetwork &network, const std::string &filename) |
Produces a graph of the given network and writes it to filename. | |
| static VDF_API void | GraphToFile (const VdfNetwork &network, const std::string &filename, const VdfGrapherOptions &options) |
Produces a graph of the given network and writes it to filename. | |
| static VDF_API void | GraphToTemporaryFile (const VdfNetwork &network, const VdfGrapherOptions &options) |
Produces a graph of the given network and writes it to a temporary file. | |
| static VDF_API void | GraphNodeNeighborhood (const VdfNode &node, int maxInDepth, int maxOutDepth, const std::vector< std::string > &exclude=std::vector< std::string >()) |
Produces a graph in the neighborhood of node. | |
| static VDF_API std::vector< const VdfNode * > | GetNodesNamed (const VdfNetwork &network, const std::string &name) |
Returns the list of all registered nodes in the given network with the given name. | |
| static VDF_API std::string | GetDotCommand (const std::string &dotFileName) |
Returns a string that represents a shell command that will view the file dotFileName. | |
This class is used to produce printable graphs of Vdf networks.
The simplest way to use this class is to use the convenient static methods:
Note: The command to be used for generating graphs should be:
For viewing use:
|
static |
Returns a string that represents a shell command that will view the file dotFileName.
|
static |
Returns the list of all registered nodes in the given network with the given name.
|
static |
Produces a graph in the neighborhood of node.
|
static |
Produces a graph of the given network and writes it to filename.
Uses the default grapher options.
|
static |
Produces a graph of the given network and writes it to filename.
The given options are used to configure the output.
|
static |
Produces a graph of the given network and writes it to a temporary file.
The given options are used to configure the output.