Function graspi::add_edge_to_graph

Function Documentation

void graspi::add_edge_to_graph(int s, int t, char o, double w, int green_vertex, int dgreen_vertex, int lgreen_vertex, graph_t *G, vertex_colors_t &C, edge_weights_t &W, edge_colors_t &L)

This is function to add the edge between source and target vertex

Parameters
  • s: is the source vertex

  • t: is the target vertex

  • o: is the order of the edges to be added

  • w: is the weight of the edge to be added

  • green_vertex: is the index of the green vertex

  • dgreen_vertex: is the index of the dark green vertex

  • lgreen_vertex: is the index of the light green vertex

  • G: is the reference to the input graph

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

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

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