Validate Adding a Directed Edge Without Conflict or Cycle
Asked at Hive · Coding Questions · Difficulty: Medium
Given an existing list of directed edges `edges`, where each edge is represented as `(src, dst)`, and one new directed edge `(new_src, new_dst)`, determine whether the new edge can be added to the graph.
Loading the problem…