Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Graph theory


 Contents
Graph theory is the branch of mathematics that examines the properties of graphs.
A graph with 6 vertices and 7 edges.

Informally, a graph is a set of objects called vertices (or nodes) connected by links called edges (or arcs). Typically, a graph is depicted as a set of dots (i.e., vertices) connected by lines (i.e., edges).

For more and formal definitions, see Glossary of graph theory and Graph (mathematics).

Depending on the applications, edges may or may not have a direction; edges joining a vertex to itself may or may not be allowed, and vertices and/or edges may be assigned weights, that is, numbers. If the edges have a direction associated with them (indicated by an arrow in the graphical representation) then it is a directed graph, or digraph.

The graph with only one vertex and no edges is the trivial graph or "the dot". A graph with only vertices and no edges is known as an empty graph; the graph with no vertices and no edges is the Null graph. See Glossary of graph theory.

Structures that can be represented as graphs are ubiquitous, and many problems of practical interest can be formulated as questions about certain graphs. Various networks are conveniently described by means of graphs. For example, the link structure of Wikipedia could be represented by a directed graph: the vertices are the articles in Wikipedia and there's a directed edge from article A to article B if and only if A contains a link to B. Directed graphs are also used to represent finite state machines. The development of algorithms to handle graphs is therefore of major interest in computer science.

1 History

Leonhard Euler's paper on Seven Bridges of Königsberg is considered to be the first result in graph theory. It is also regarded as one of the first topological results in geometry; that is, it does not depend on any measurements. This illustrates the deep connection between graph theory and topology.

2 Graph representations

In general, there are four ways to represent a graph in a computer system: The incidence list representation, the incidence matrix representation, adjacency list representation, and the adjacency matrixIn mathematics and computer science, the adjacency matrix for a finite graph on n vertices is an n × n matrix in which entry a is the number of edges from v to v in. There exists a unique adjacency matrix for each graph, and it is not the adjacency matrix representation.

These two representations are most useful when information about edges is more desirable than information about vertices.

These two representations are most useful when information about the vertices is more desirable than information about the edges. These two representations are also most popular since information about the vertices is often more desirable than edges in most applications.



Read more »

Non User