Function graspi::output_graph

Function Documentation

bool graspi::output_graph(const std::string &name, graph_t *G, dim_g_t &d_g, vertex_colors_t &C, edge_weights_t &W, edge_colors_t &L)

This function outputs the structure of the graph to the file with the given name.

This function outputs the structure of the to the file with the given name

Parameters
  • name: is the filename the structure is sent to

  • G: is the input graph

  • d_g: is the struct storing the dimension of graph vertices

  • C: is the vector storing the labels/colors of vertices in the graph G

  • W: is the map storing the weights of the edges

  • L: is the map storing the labels/colors of the edges in graph G