Function graspi::add_edge_to_graph¶
Defined in File graph_constructors.hpp
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 vertext
: is the target vertexo
: is the order of the edges to be addedw
: is the weight of the edge to be addedgreen_vertex
: is the index of the green vertexdgreen_vertex
: is the index of the dark green vertexlgreen_vertex
: is the index of the light green vertexG
: is the reference to the input graphC
: is the reference to the vector storing the labels/colors of vertices in the graph GW
: is the reference to the map storing the weights of the edgesL
: is the reference to the map storing the labels/colors of the edges in graph G