Consider Union of shortest path trees for each vertexes on connected and undirected Graph G. order (number) of edges in this union at worst case is O(n^2
G
O(n^2