Logo Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Representing Graphs

Consider a directed graph tex2html_wrap_inline70093. Since tex2html_wrap_inline70103, graph G contains at most tex2html_wrap_inline70379 edges. There are tex2html_wrap_inline70381 possible sets of edges for a given set of vertices tex2html_wrap_inline70095. Therefore, the main concern when designing a graph representation scheme is to find a suitable way to represent the set of edges.