Implementation of Vertex The table
below indicates where methods are implemented and the time complexity of these methods. Some methods are implemented in more than one
place. When this happens, each entry
overrides the entries to its left. When an entry says "based on iterator" or
"traverse iterator" or "uses size," then the time complexity depends
on the iterator or size method.
Notes on the above· n = number of vertices · m = number of edges · m/n = max (average number of edges
leaving each vertex, 1) · Complexity of the methods based on assumption that the underlying
Map of vertices has basic operations of O(1). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||