digraph/directed_graph.c
/*
 * The add vertex function creates a Vertex* pointer and adds it to the Directed Graph struct.
 * True is returned if the vertex was successfully added to the Directed Graph. Otherwie false 
 * is returned.
 */
The add vertex function creates a Vertex* pointer and adds it to the Directed Graph struct.
True is returned if the vertex was successfully added to the Directed Graph. Otherwie false
is returned.
The add vertex function creates a Vertex * pointer and adds it to the Directed Graph struct . True is returned if the vertex was successfully added to the Directed Graph . Otherwie false is returned .
bool add_vertex(DirectedGraph* graph, void* element)
{
	if(graph == NULL || element == NULL)
		return false;
	Vertex* v = create_vertex(element);
	return	linked_list_add_last(graph->vertexList, v);
}
bool add_vertex ( DirectedGraph * graph , void * element ) { if ( graph == NULL || element == NULL ) return false ; Vertex * v = create_vertex ( element ) ; return linked_list_add_last ( graph -> vertexList , v ) ; }
The add vertex function creates a Vertex* pointer and adds it to the Directed Graph struct.
The add vertex function creates a Vertex * pointer and adds it to the Directed Graph struct .
// If either parameter is NULL, return false. // Instantiate a Vertex struct while passing in the element parameter. // Return the call to linkedlist add last function while passing in Directed Graph's vertex list and the instantiated vertex.