Write the definition of the get_source_nodes() function, which should return a vector of all source nodes in the graph.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write the definition of the get_source_nodes() function, which should return a vector of all source nodes in the graph.

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply