Write the definition of the get_source_nodes() function, which should return a vector of all source nodes in the graph.
Posted: Tue Jul 12, 2022 8:11 am
Write the definition ofthe get_source_nodes() function, which should return avector of all source nodes in the graph.Remember that a node is a source if it hasonly out edges. You can use any of the otherfunctions in the class in your implementation.