Consider connected and undirected Graph $G$.
shortest path tree for each vertexes of $G$ was given.
if we makes union of all these shortest path trees then order (number) of edges in this union at worst case is $O(n^2)$ !!
how this achieved? is there any idea?
My Idea:
I think a complete graph with $n$ vertex, each vertex has shortest path tree at most of $n-1$ edges in worst case and then $O(n^2)$.
Welcome to MSE!
Your idea is exactly right. More formally:
I hope this helps ^_^