课 Progress
0% Complete

Introduction to graph theory

What is graph theory?

  • Graph theory is the study of graphs, which are mathematical structures used to represent objects and the connections between them

  • They can be used in modelling many real-life applications, e.g. electrical circuits, flight paths, maps etc

Edges & vertices

What are the different parts of a graph?

  • A graph is made up of a number of points (vertices or nodes) that are connected by lines (edges or arcs)

  • A vertex (node) can represent an object, a place or a person

    • Adjacent vertices are connected by an edge 

    • Vertices are usually labelled with a letter, e.g. A, B, C

      • The list of vertices in a graph is sometimes called the vertex set

  • An edge (arc) forms a connection between two vertices

    • Edges are described by the nodes they connect, e.g. AB, AC, BE…

      • The list of edges in a graph is sometimes called the edge set

    • Adjacent edges share a common vertex

    • There may be multiple edges connecting two vertices

    • An edge that starts and ends at the same vertex is called a loop

  • Typically a graph will be drawn such that edges do not overlap

    • Note that if a graph is drawn with overlapping edges, the edges are not connected at points where they overlap

    • Edges are only connected at vertices

-blxnH4__labelled-graph

Properties of graphs

What are the properties of graphs?

  • The edges of a graph may be assigned a numerical value

    • This value is called the weight (of an edge)

    • Weight is often a measure such as distance, time or money

  • A walk is a finite series of edges in a graph that starts at one vertex and moves from vertex to vertex

    • The (total) weight of a walk is the sum of the weights of the edges that it consists of

  • A path is a walk where no vertex is visited more than once

  • trail is a walk where no edge is visited more than once

    • Every path is also a trail but not every trail is a path

  • A cycle (or circuit) is a path that starts and finishes at the same vertex

    • It is also known as a closed path

  • A tour is a walk that visits every vertex and returns to its start vertex

Types of graph

What are the types of graph?

  • A connected graph is a graph in which all of its vertices are connected to each other

    • Two vertices are connected if there is a path between them

      • There does not need to be an edge connecting the pair of vertices

connected-graph
  • complete graph is a graph in which each vertex is connected by an edge to each of the other vertices

    • A complete graph with n vertices is labelled Kn

aMz_m~db_complete-graph
  • If the edges of a graph have a weight, the graph is known as a weighted graph (or network)

    • Networks are not usually drawn to scale

JfxHzXhV_network
  • If the edges of a graph are assigned a direction, they are known as directed edges and the graph is known as a digraph

    • the directed edges of a graph can only be traversed in the direction indicated

9BBq8FNg_digraph
  • simple graph is undirected and unweighted and contains no loops or multiple edges

  • Given a graph G, a subgraph will only contain edges and vertices that appear in G

  • A tree is a connected graph that does not contain any cycles

  • A spanning tree is a subgraph, which is also a tree, of a graph G that contains all the vertices from G

72C7sUrZ_trees
  • An isomorphic graph is a graph that shows the same information (number of vertices and valency of vertices) but is drawn in a different way

cez4U8ia_isomorphic-graphs
  • planar graph is a graph where no two edges meet each other except for at a vertex

<img alt=”KhFHTuyV_planar-graph” class=”ContentBlock_figure__vJw2q” data-nimg=”1″ decoding=”async” height=”445″ loading=”lazy” sizes=”(max-width: 320px) 320w, (max-width: 640px) 640w, (max-width: 960px) 960w, (max-width: 1280px) 1280w, 1920w” src=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=3840/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png” srcset=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=16/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 16w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=32/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 32w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=48/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 48w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=64/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 64w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=96/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 96w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=128/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 128w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=256/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 256w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=384/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 384w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=640/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 640w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=750/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 750w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=828/https://cdn.savemyexams.com/uploads/2023/09/KhFHTuyV_planar-graph.png 828w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=1080/https://cdn.savemyexams.com/uploads/2023/09/KhFHTu

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注