[Home]Graph theory

HomePage | Recent Changes | Preferences

Showing revision 4
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

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.

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.

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.

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.

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

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!

HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited September 30, 2001 6:56 pm by BlckKnght (diff)
Search: