Alice and Bob have an undirected graph containing n nodes labeled from n. You are given an integer n and a edges, where edges[i]
The parameter
Type
Type
Type
A graph is fully traversable by an individual if that person can reach every node from every other node using only their accessible edges.
Return the maximum number of edges you can remove such that the graph remains fully traversable by both Alice and Bob. If it is impossible for both Alice and Bob to fully traverse the graph, return
Constraints:
n
edges.length n n
edges[i].length
n
All tuples
Alice and Bob have an undirected graph containing n nodes labeled from n. You are given an integer n and a edges, where edges[i]
The parameter
Type
Type
Type
A graph is fully traversable by an individual if that person can reach every node from every other node using only their accessible edges.
Return the maximum number of edges you can remove such that the graph remains fully traversable by both Alice and Bob. If it is impossible for both Alice and Bob to fully traverse the graph, return
Constraints:
n
edges.length n n
edges[i].length
n
All tuples