Graph (mathematics)
From Wikipedia, the free encyclopedia
|
This article presents the essential definitions. For a more complete account see graph theory. For the graph of a function, see graph of a function.
A drawing of a labeled graph on 6 vertices and 7 edges.
In mathematics and computer science, a graph is the basic object of study in graph theory. Informally speaking, a graph is a set of objects called points, nodes, or vertices connected by links called lines or edges. In a proper graph, which is by default undirected, a line from point A to point B is considered to be the same thing as a line from point B to point A. In a digraph, short for directed graph, the two directions are counted as being distinct arcs or directed edges. Typically, a graph is depicted in diagrammatic form as a set of dots (for the points, vertices, or nodes), joined by curves (for the lines or edges).
DefinitionsDefinitions in graph theory vary. The following are some of the more basic ways of defining graphs and related mathematical structures. GraphImage:Undirected.svg
An undirected graph.
A graph or undirected graph Failed to parse (Missing texvc executable; please see math/README to configure.): G is an ordered pair Failed to parse (Missing texvc executable; please see math/README to configure.): G := (V, E) that is subject to the following conditions:
is a set, whose elements are called vertices or nodes,
is a set of pairs (unordered) of distinct vertices, called edges or lines. The vertices belonging to an edge are called the ends, endpoints, or end vertices of the edge. Failed to parse (Missing texvc executable; please see math/README to configure.): V (and hence Failed to parse (Missing texvc executable; please see math/README to configure.): E ) are usually taken to be finite sets, and many of the well-known results are not true (or are rather different) for infinite graphs because many of the arguments fail in the infinite case. The order of a graph is Failed to parse (Missing texvc executable; please see math/README to configure.): |V| (the number of vertices). A graph's size is Failed to parse (Missing texvc executable; please see math/README to configure.): |E| , the number of edges. The degree of a vertex is the number of other vertices it is connected to by edges. The edge set Failed to parse (Missing texvc executable; please see math/README to configure.): E induces a symmetric binary relation ~ on Failed to parse (Missing texvc executable; please see math/README to configure.): V that is called the adjacency relation of Failed to parse (Missing texvc executable; please see math/README to configure.): G . Specifically, for each edge {u,v} the vertices u and v are said to be adjacent to one another, which is denoted u ~ v. For an edge {u, v}, graph theorists usually use the somewhat shorter notation uv. Types of graphsDirected graphImage:Directed.svg
A directed graph.
A directed graph or digraph Failed to parse (Missing texvc executable; please see math/README to configure.): G is an ordered pair Failed to parse (Missing texvc executable; please see math/README to configure.): G := (V, A) with
is a set, whose elements are called vertices or nodes,
is a set of ordered pairs of vertices, called directed edges, arcs, or arrows. An arc Failed to parse (Missing texvc executable; please see math/README to configure.): e = (x, y) is considered to be directed from Failed to parse (Missing texvc executable; please see math/README to configure.): x to Failed to parse (Missing texvc executable; please see math/README to configure.): y
is called the head and Failed to parse (Missing texvc executable; please see math/README to configure.): x is called the tail of the arc; Failed to parse (Missing texvc executable; please see math/README to configure.): y is said to be a direct successor of Failed to parse (Missing texvc executable; please see math/README to configure.): x , and Failed to parse (Missing texvc executable; please see math/README to configure.): x is said to be a direct predecessor of Failed to parse (Missing texvc executable; please see math/README to configure.): y . If a path leads from Failed to parse (Missing texvc executable; please see math/README to configure.): x to Failed to parse (Missing texvc executable; please see math/README to configure.): y , then Failed to parse (Missing texvc executable; please see math/README to configure.): y is said to be a successor of Failed to parse (Missing texvc executable; please see math/README to configure.): x , and Failed to parse (Missing texvc executable; please see math/README to configure.): x is said to be a predecessor of Failed to parse (Missing texvc executable; please see math/README to configure.): y . The arc Failed to parse (Missing texvc executable; please see math/README to configure.): (y, x) is called the arc Failed to parse (Missing texvc executable; please see math/README to configure.): (x, y) inverted. A directed graph is called symmetric if every arc belongs to it together with the corresponding inverted arc. A symmetric loopless directed graph is equivalent to an undirected graph with the pairs of inverted arcs replaced with edges; thus the number of edges is equal to the number of arcs halved. A variation on this definition is the oriented graph, which is a graph (or multigraph; see below) with an orientation or direction assigned to each of its edges. A distinction between a directed graph and an oriented simple graph is that if Failed to parse (Missing texvc executable; please see math/README to configure.): x and Failed to parse (Missing texvc executable; please see math/README to configure.): y are vertices, a directed graph allows both Failed to parse (Missing texvc executable; please see math/README to configure.): (x, y) and Failed to parse (Missing texvc executable; please see math/README to configure.): (y, x) as edges, while only one is permitted in an oriented graph. A more fundamental difference is that, in a directed graph (or multigraph), the directions are fixed, but in an oriented graph (or multigraph), only the underlying graph is fixed, while the orientation may vary. A directed acyclic graph, occasionally called a dag or DAG, is a directed graph with no directed cycles. In the theory of Lie groups, a quiver Q is a directed graph serving as the domain of, and thus characterizing the shape of, a representation V defined as a functor, specifically an object of the functor category FinVctKF(Q) where F(Q) is the free category on Q consisting of paths in Q and FinVctK is the category of finite dimensional vector spaces over a field K. Representations of a quiver label its vertices with vector spaces and its edges (and hence paths) compatibly with linear transformations between them, and transform via natural transformations. Undirected graphA graph G = {V,E} in which every edge is undirected. This is the same as a digraph (look above) where for an edge (v,u) there is an edge from v to u and u to v. Finite graphA finite graph is a graph G = <V,E> such that V(G) and E(G) are finite sets. Simple graphA simple graph is an undirected graph that has no self-loops. Regular graphA regular graph is a graph where each vertex has the same number of neighbors, i.e. every vertex has the same degree or valency. A regular graph with vertices of degree k is called a k‑regular graph or regular graph of degree k. Weighted graphA graph is a weighted graph if a positive number (weight) is assigned to each edge. Such weights might represent, for example, costs, lengths or capacities, etc. depending on the problem. Weight of the graph is sum of the weight given to all edges. Mixed graphA mixed graph G is a graph in which some edges may be directed and some may be undirected. It is written as an ordered triple G := (V, E, A) with V, E, and A defined as above. Directed and undirected graphs are special cases. Complete graphComplete graphs have the feature that each pair of vertices has an edge connecting them. Variations in the definitionsAs defined above, edges of undirected graphs have two distinct ends, and E and A are sets (with distinct elements, like all sets). Many applications require more general possibilities, but terminology varies. LoopA loop is an edge (directed or undirected) which starts and ends on the same vertex; these may be permitted or not permitted according to the application. In this context, an edge with two different ends is called a link. MultisetSometimes Failed to parse (Missing texvc executable; please see math/README to configure.): E and Failed to parse (Missing texvc executable; please see math/README to configure.): A are allowed to be multisets, so that there can be more than one edge (called multiple edges) between the same two vertices. Another way to allow multiple edges is to make Failed to parse (Missing texvc executable; please see math/README to configure.): E a set, independent of Failed to parse (Missing texvc executable; please see math/README to configure.): V , and to specify the endpoints of an edge by an incidence relation between Failed to parse (Missing texvc executable; please see math/README to configure.): V and Failed to parse (Missing texvc executable; please see math/README to configure.): E . The same applies to a directed edge set Failed to parse (Missing texvc executable; please see math/README to configure.): A , except that there must be two incidence relations, one for the head and one for the tail of each edge. Multi graphThe term "multigraph" is generally understood to mean that multiple edges (and sometimes loops) are allowed. Where graphs are defined so as to allow loops and multiple edges, a multigraph is often defined to mean a graph without loops,[1] however, where graphs are defined so as to disallow loops and multiple edges, the term is often defined to mean a "graph" which can have both multiple edges and loops,[2] although many use the term "pseudograph" for this meaning.[3] Half-edges, loose edgesIn exceptional situations it is even necessary to have edges with only one end, called half-edges, or no ends (loose edges); see for example signed graphs and biased graphs. Properties of graphs
Two edges of a graph are called adjacent (sometimes coincident) if they share a common vertex. Two arrows of a directed graph are called consecutive if the head of the first one is at the nock (notch end) of the second one. Similarly, two vertices are called adjacent if they share a common edge (consecutive if they are at the notch and at the head of an arrow), in which case the common edge is said to join the two vertices. An edge and a vertex on that edge are called incident. The graph with only one vertex and no edges is called the trivial graph. A graph with only vertices and no edges is known as an edgeless graph. The graph with no vertices and no edges is sometimes called the null graph or empty graph, but not all mathematicians allow this object. In a weighted graph or digraph, each edge is associated with some value, variously called its cost, weight, length or other term depending on the application; such graphs arise in many contexts, for example in optimal routing problems such as the traveling salesman problem. Normally, the vertices of a graph, by their nature as elements of a set, are distinguishable. This kind of graph may be called vertex-labeled. However, for many questions it is better to treat vertices as indistinguishable; then the graph may be called unlabeled. (Of course, the vertices may be still distinguishable by the properties of the graph itself, e.g., by the numbers of incident edges). The same remarks apply to edges, so that graphs which have labeled edges are called edge-labeled graphs. Graphs with labels attached to edges or vertices are more generally designated as labeled. Consequently, graphs in which vertices are indistinguishable and edges are indistinguishable are called unlabeled. (Note that in the literature the term labeled may apply to other kinds of labeling, besides that which serves only to distinguish different vertices or edges.) ExamplesThe picture is a graphic representation of the following graph
on a set Failed to parse (Missing texvc executable; please see math/README to configure.): X is a directed graph. Two edges Failed to parse (Missing texvc executable; please see math/README to configure.): x , Failed to parse (Missing texvc executable; please see math/README to configure.): y of Failed to parse (Missing texvc executable; please see math/README to configure.): X are connected by an arrow if Failed to parse (Missing texvc executable; please see math/README to configure.): xRy . Important graphsBasic examples are:
More advanced kinds of graphs are:
Operations on graphsThere are several operations that produce new graphs from old ones. They may be separated into three categories
GeneralizationsIn a hypergraph, an edge can join more than two vertices. An undirected graph can be seen as a simplicial complex consisting of 1-simplices (the edges) and 0-simplices (the vertices). As such, complexes are generalizations of graphs since they allow for higher-dimensional simplices. Every graph gives rise to a matroid. In model theory, a graph is just a structure. But in that case, there is no limitation on the number of edges: it can be any cardinal number. Notes
References
See alsoExternal links
ca:Graf cs:Graf (teorie grafů) de:Graph (Graphentheorie) es:Grafo fa:نظریه گراف fr:Graphe (théorie des graphes) ko:그래프 id:Graf (matematika) it:Grafo lt:Grafas (matematika) hu:Gráf nl:Graaf (wiskunde) pl:Graf (matematyka) pms:Graf ru:Граф (математика) sk:Graf (matematika) sv:Graf th:กราฟ (คณิตศาสตร์) uk:Граф (математика) |


