← Microsoft questions

Find incident and outgoing edges for a node in a directed graph

Filed under Microsoft

Given a directed graph represented as an adjacency list and a target node, return a list of all nodes that have an edge pointing to the target node (incident) and all nodes that the target node points…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.