Jump to content

Graph theory

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BlckKnght (talk | contribs) at 10:56, 30 September 2001 (link to node article (which maybe should be more general?), fixed ascii art formating). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In Graph Theory, a graph is defined to be a set of dots (called vertices or nodes) connected by links (called arcs or edges). A more formal definition is:


A simple graph is a set of nodes N and a set of unordered pairs of distinct elements of N called edges.

 1 _____ 2 _____ 3
  \     /       /
   \   /       /    an example graph with five vertices and six edges
    \ /       /
     5 _____ 4
  • adjacent

Two nodes are considered adjacent if an edge exists between them. In the above graph, nodes 1 and 2 are adjecent, but nodes 2 and 4 are not.


  • neighbor

The set of neighbors for a node contains each node adjacent to it. In the above graph, node 1 has two neighbors: node 2 and node 5.


  • path

A path is a series of nodes in that each node is adjacent to both the preceding and succeding node. A path is considered simple if none of the nodes in the path are repeated. In the above graph, {1, 2, 5, 1, 2, 3} is a path, and {5, 2, 1} is a simple path.


  • cycle

A cycle is a path that begins and ends with the same node. In the above graph, {1, 5, 2, 1} is a cycle. A path is acyclic if it is not a cycle. A simple cycle is one in which the beginning node only appears once more, as the ending node.


  • complete

A complete graph is one in which every node is adjacent to every other node. The above graph is not complete.


  • planar

A planar graph is one which can be drawn in the plane without any two edges intersecting. The above graph is planar.


Graph Problems


lots more stuff here when I get time!