Class PostscriptWriter

Class Documentation

class PostscriptWriter

EPS output of graphs with 2D coordinates

Public Functions

PostscriptWriter(bool isTorus = false)
Parameters:

isTorus[in] Specifies whether the visualization square is treated as torus, i.e. with wrap-around boundaries (edge can leave the square and enter at the opposite side. By default, it is set to false.

void write(const Graph &g, const std::vector<Point2D> &coordinates, const Partition &clustering, const std::string &filename)

Outputs an EPS file with name filename of the graph g with 2D coordinates. The colors are chosen to visualize the specified clustering.

Note

We assume g.upperNodeIdBound() == coordinates.size();

Parameters:
  • g[in] Graph to be visualized.

  • coordinates[in] Two-dimensional coordinates of nodes

  • clustering[in] Clustering of the graph, visualized by different colors.

  • filename[in] Name of file to write to.

void write(const Graph &g, const std::vector<Point2D> &coordinates, const std::string &filename)

Outputs an EPS file with name filename of the graph g with 2D coordinates.

Note

We assume g.upperNodeIdBound() == coordinates.size();

Parameters:
  • g[in] Graph to be visualized.

  • coordinates[in] Two-dimensional coordinates of nodes

  • filename[in] Name of file to write to.