digraph/directed_graph.c
/*
 * The change_arc_weight changes the weight of a specifc arc within the DirectedGraph* struct.
 * The specific arc's weight that is changed is the one from the void* origin vertex to the 
 * void* destination vertex.
 */
The change_arc_weight changes the weight of a specifc arc within the DirectedGraph* struct.
The specific arc's weight that is changed is the one from the void* origin vertex to the
void* destination vertex.
The change_arc_weight changes the weight of a specifc arc within the DirectedGraph * struct . The specific arc ' s weight that is changed is the one from the void * origin vertex to the void * destination vertex .
bool change_arc_weight(DirectedGraph* graph, void* origin, void* destination, float cost)
{
	if(graph == NULL || origin == NULL || destination == NULL)
		return false;
	Vertex* start = get_vertex(graph, origin);
	Vertex* end   = get_vertex(graph, destination);
	return change_vertex_weight(start, end, cost);
}
bool change_arc_weight ( DirectedGraph * graph , void * origin , void * destination , float cost ) { if ( graph == NULL || origin == NULL || destination == NULL ) return false ; Vertex * start = get_vertex ( graph , origin ) ; Vertex * end = get_vertex ( graph , destination ) ; return change_vertex_weight ( start , end , cost ) ; }
The change_arc_weight changes the weight of a specifc arc within the DirectedGraph* struct.
The change_arc_weight changes the weight of a specifc arc within the DirectedGraph * struct .