• A graph is a pair where is a set of vertices and is a set of edges.

    • is a set of elements called nodes (or vertices (s. vertex))
    • is a set of unordered pairs of distinct elements of called edges (or links)
    • A graph is sometimes called a simple graph to distinguish it from a multigraph, and an undirected graph to distinguish it from a directed graph.
    • The vertices and of an edge are called the endpoints of , and is said to join (or connect) and , and to be incident to them, and and are said to be adjacent to each other.
    • A vertex is said to be isolated if it is not connected to any other vertex.
    • A graph is simple if it has no loops (edges connecting a vertex to itself) and no multiple edges (two or more edges connecting the same pair of vertices), otherwise it is called a multigraph.
  • A weighted graph (or a network) is defined as a graph but with a weight function that assigns a real number to each edge.

Subgraphs

  • is a subgraph of , if and , and every edge in connects two nodes in
    • is a spanning subgraph of , if is subgraph of , and
    • is an induced subgraph of , if and (the graph may also be called the subgraph induced in by ).

Degree

  • The degree of a vertex in a graph is the number of edges incident to , with loops counted twice.
    • The degree sequence of a graph is the list of its vertex degrees in non-increasing order.
    • The minimum degree of a graph is the smallest degree of its vertices.
    • The maximum degree of a graph is the largest degree of its vertices.
    • The average degree of a graph is the average of the degrees of its vertices.

Handshaking Lemma

  • (1.3)
  • (q1) An undirected graph has an even number of vertices of odd degree

Neighbour

  • An adjacent vertex of a vertex in a graph is a vertex that is connected to by an edge.
  • The neighbourhood of a vertex
  • The neighbourhood of set  is the union of the neighbourhoods of the vertices of .

Complement graph

  • The complement of a simple graph is the simple graph where .
    • , where .
  • (q4) The complement of a disconnected graph is connected

Components

  • A component (or connected component) of a graph is a maximal connected subgraph (maximal in the sense that it is not a proper subgraph of any other connected subgraph)
    • The components of a graph
  • Every graph with vertices and edges has at least components.

Cycle & Path

  • A walk is a finite or infinite sequence of edges which joins a sequence of vertices.
  • A trail (מסלול) is a walk in which all edges are distinct.
    • A path (מסלול פשוט) is a trail in which all vertices (and therefore also all edges) are distinct.
    • A circuit (מעגל, מסלול סגור) is a non-empty trail in which the first and last vertices are equal.
    • A cycle (מעגל פשוט) is a non-empty trail in which only the first and last vertices are equal.
      • An even cycle is a cycle with an even number of vertices
      • An odd cycle is a cycle with an odd number of vertices
  • A cycle graph is a graph that consists of a single cycle.

Connected Graph

  • A graph is connected if there is a path between every pair of vertices.
  • For every connected graph
  • Let a connected graph, and , then there is a cycle in the graph.
  • (q2) Let a connected graph, and each vertex has degree 2, then is a cycle graph.
  • (q4) The complement of a disconnected graph is connected

Complete graph

A complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. the complete graph on vertices is denoted by

  • Number of Edges in complete graph is . ^[Triangle number]
  • Number of Perfect Matchings in complete graph is double-factorial .
  • TODO: https://oeis.org/A031878 is maybe the longest path in complete graph

Directed Graph

  • A directed graph (or digraph) is a pair , where:
    • is a set of nodes (as defined for an undirected graph)
    • is a set of ordered pairs of distinct elements of called edges (or directed edges or arcs or arrows): .
    • To avoid ambiguity, a directed graph may be called precisely a directed simple graph.
    • A directed edge is said to start at and end at , and is said to be the tail of the edge and is said to be the head of the edge.
    • The edge is called the inverted edge of .
  • All the definitions of walk, trail, and path carry over to directed graphs (and said to be directed) with the additional requirement that the edges must be traversed in the correct direction.
    • If is a directed walk with vertex sequence , then is said to be a walk from to . (The same for trail and path.)