Graph theory


In mathematics and computer science, graph theory studies the properties of graphs. Informally, a graph is a set of objects called vertices (or Nodes) connected by links called edges (or Arcs) which can be directed. Typically, a graph is designed as a set of dots (the vertices) connected by lines (the edges).
Image:6n-graf.png
A graph with 6 vertices and 7 edges.
Structures that can be represented as graphs are ubiquitous, and many problems of practical interest can be represented by graphs. 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. The development of algorithms to handle graphs is therefore of major interest in computer science. A graph structure can be extended by assigning a weight to each edge, or by making the edges to the graph directional (''A'' links to B, but B does not necessarily link to A, as in webpages), technically called a digraph. Within graph theory, a digraph with weighted edges is called a network. Networks have many uses in the practical side of graph theory, network analysis (for example, to model and analyze traffic networks or to discover the shape of the internet -- see #Applications below). However, it should be noted that within network analysis, the definition of network is much looser, and may often be a simple graph.

History

One of the first results in graph theory appeared in Leonhard Euler's paper on Seven Bridges of Königsberg, published in 1736. 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. In 1845 Gustav Kirchhoff published his Kirchhoff's circuit laws for calculating the voltage and current in electric circuits. In 1852 Francis Guthrie posed the four color problem which asks if it is possible to color, using only four colors, any map of countries in such way as to prevent two bordering countries from having the same color. This problem, which was only solved a century later in 1976 by Kenneth Appel and Wolfgang Haken, can be considered the birth of graph theory. While trying to solve it mathematicians invented many fundamental graph theoretic terms and concepts.

Definition

:''See main article graph

Drawing graphs

:''See main article graph drawing Graphs are represented graphically by drawing a dot for every vertex, and drawing an arc between two vertices if they are connected by an edge. If the graph is directed the direction is indicated by drawing an arrow. A graph drawing should not be confused with the graph itself (the abstract, non-graphical structure) as there are several ways to structure the graph drawing. All that matters is which vertices are connected to which others by how many edges and not the exact layout. In practise it is often difficult to decide if two drawing represent the same graph. Depending on the problem domain some layouts may be better suited and easier to understand than others.

Graphs as data structures

:''See main article graph (data structure) There are different ways to store a graphs in a computer system. The data structure used depends on the graph structure and the algorithm used for manipulating the graph. Theoretically one can distinguish between list and matrix structures but in concrete applications the best structure is often a combination of both. List structures are often preferred for sparse graphs as they have smaller memory requirements. Matrix structures on the other hand provide faster access but can consume huge amounts of memory if the graph is very large.

List structures

Matrix structures

Graph problems

Important algorithms

Applications

Many applications of graph theory exist in the form of network analysis. These split broadly into two categories. Firstly, analysis to determine structural properties of a network, such as whether or not it is a scale-free network, or a small-world network. Secondly, analysis to find a measurable quantity within the network, for example, for a transportation network, the level of vehicular flow within any portion of it.

See also

bg:Теория на графите de:Graphentheorie es:Teoría de los grafos eo:Grafeteorio fr:Théorie des graphes ko:그래프 이론 it:Teoria dei grafi ja:グラフ理論 he:תורת הגרפים nl:Grafentheorie nn:Grafteori no:Grafteori pl:Teoria grafów pt:Teoria dos grafos simple:Graph theory sk:Teória grafov sv:Grafteori th:ทฤษฎีกราฟ tr:Çizge Teorisi uk:Теорія графів zh:图论 Category:Discrete mathematics Category:Graph theory