Home / MCQ Bank / Computer
Computer Graphs Difficulty: Medium

Complete the given snippet of code for the adjacency list representation of a weighted directed graph. class neighbor { int vertex, weight; ____ next; } class vertex { string name; _____ adjlist; } vertex adjlists[101];

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following PHP code ? <?php $age = array ( "Harry" => "21" , "Ron" => "23" , "Malfoy" => "21" ); array_change_key_case ( $age, CASE_UPPER ); array_pop ( $age ); print_r ( $age ); ?> What will be the output of the following C++ code? #include <iostream> #include <algorithm> #include <vector> using namespace std; int main () { vector<int> v = {4,2,10,5,1,8}; if (binary_search(v.begin(), v.end(), 4)) cout << "found.\n"; else cout << "not found.\n"; return 0; } Which of the following will be used if a sender of E-mail wants to bold, italics, etc the text message? Which property specifies the path to the project when running in web server? How can we move from one desired step to another step?