dyng
|
Grav writer for fractional flows. More...
#include <draw.hxx>
Public Member Functions | |
FlowGravWriter (const Net &net, const std::string &name, const std::vector< double > &basecosts, const std::vector< double > &augcosts, const std::vector< const char *> &nodedesc, const std::vector< const char *> &arcdesc, const std::vector< double > &flows, bool append=false) | |
bool | append () const |
Returns true iff the graph to be written should be appended. More... | |
bool | node (index_type nodeid, Color &color, NodeShape &shape, std::string &desc) |
Get node info. | |
bool | arc (index_type arcid, double &cost, double &flow, Color &color, std::string &desc) |
Get arc info. | |
Public Member Functions inherited from Dyng::GravWriter | |
GravWriter (const Net &net, const std::string &name) | |
Create a GravWriter for a network. More... | |
virtual | ~GravWriter () |
Destructor. | |
virtual void | write (std::ostream &out) |
Write the graph to the given output stream. | |
Additional Inherited Members | |
Public Types inherited from Dyng::GravWriter | |
enum | NodeShape { Disc, Circ } |
The shape of a node. | |
Protected Attributes inherited from Dyng::GravWriter | |
const Net & | _net |
the network to be drawn | |
const std::string | _name |
name of the graph in the grav file | |
Grav writer for fractional flows.
|
inlinevirtual |
Returns true iff the graph to be written should be appended.
If a graph is appended (to a previously written graph), the node and arc commands are considered augmentations to the previous graph. Otherwise the graph is considered a new graph.
The default implementation always returns true.
Reimplemented from Dyng::GravWriter.