You are given an undirected graph with edges where each edges[i]
A connected trio is defined as a subset of three distinct vertices where an edge exists between every pair among the three.
The degree of a connected trio is the total number of edges incident to at least one of the three vertices that are not part of the trio itself.
Return the minimum degree among all connected trios in the graph. If no connected trio exists, return
Constraints:
n
edges.length
edges[i].length
n
There are no repeated edges.
You are given an undirected graph with edges where each edges[i]
A connected trio is defined as a subset of three distinct vertices where an edge exists between every pair among the three.
The degree of a connected trio is the total number of edges incident to at least one of the three vertices that are not part of the trio itself.
Return the minimum degree among all connected trios in the graph. If no connected trio exists, return
Constraints:
n
edges.length
edges[i].length
n
There are no repeated edges.