We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I hope I'm not missing something, but 2nd example provided provides edge graph with vertex labeling doesn't appear correct. Usually when I've worked edge and vertex graphs via graph there is a correspondence between vertex labeling and vertex position (save using modulus on vertex indexing to fit example...). The example provided has index listing out of range to points array, so I am a bit confused on vertex index labeling incidentally relative points provided.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Tree Coordinates
You are viewing a single comment's thread. Return to all comments →
I hope I'm not missing something, but 2nd example provided provides edge graph with vertex labeling doesn't appear correct. Usually when I've worked edge and vertex graphs via graph there is a correspondence between vertex labeling and vertex position (save using modulus on vertex indexing to fit example...). The example provided has index listing out of range to points array, so I am a bit confused on vertex index labeling incidentally relative points provided.