digraph/vertex.c
/*
 * This function adds an arc struct going from the Vertex* origin parameter to the Vertex* dest parameter
 * with a weight of the float price parameter.   
 */
This function adds an arc struct going from the Vertex* origin parameter to the Vertex* dest parameter
with a weight of the float price parameter.
This function adds an arc struct going from the Vertex * origin parameter to the Vertex * dest parameter with a weight of the float price parameter .
bool add_vertex_arc(Vertex* origin, Vertex* dest, float price)
{
	if(origin == NULL || dest == NULL)
		return false;
	Arc* arc = create_arc(dest, price);
	int prevSize = linked_list_size(origin->arcList);
	linked_list_add_last(origin->arcList, arc);	
	if(linked_list_size(origin->arcList) - prevSize == 1)
	{
		return true;
	}
	else
	{
		return false;
	}
}
bool add_vertex_arc ( Vertex * origin , Vertex * dest , float price ) { if ( origin == NULL || dest == NULL ) return false ; Arc * arc = create_arc ( dest , price ) ; int prevSize = linked_list_size ( origin -> arcList ) ; linked_list_add_last ( origin -> arcList , arc ) ; if ( linked_list_size ( origin -> arcList ) - prevSize == 1 ) { return true ; } else { return false ; } }
This function adds an arc struct going from the Vertex* origin parameter to the Vertex* dest parameter
 with a weight of the float price parameter.
This function adds an arc struct going from the Vertex * origin parameter to the Vertex * dest parameter with a weight of the float price parameter .