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

Sparse vs. Dense Graphs

Informally, a graph with relatively few edges is sparse, and a graph with many edges is dense. The following definition defines precisely what we mean when we say that a graph ``has relatively few edges'':

Definition (Sparse Graph) A sparse graph   is a graph tex2html_wrap_inline69997 in which tex2html_wrap_inline70381.

For example, consider a graph tex2html_wrap_inline69997 with n nodes. Suppose that the out-degree of each vertex in G is some fixed constant k. Graph G is a sparse graph because tex2html_wrap_inline70393.

A graph that is not sparse is said to be dense:

Definition (Dense Graph) A dense graph   is a graph tex2html_wrap_inline69997 in which tex2html_wrap_inline70397.

For example, consider a graph tex2html_wrap_inline69997 with n nodes. Suppose that the out-degree of each vertex in G is some fraction f of n, tex2html_wrap_inline70409. For example, if n=16 and f=0.25, the out-degree of each node is 4. Graph G is a dense graph because tex2html_wrap_inline70419.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.