Open In App

Hypergraph & its representation | Discrete Mathematics

Last Updated : 04 Nov, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Introduction :
A hypergraph is a graph in which hyperedges (generalized edges) can connect to a subset of vertices/nodes rather than two vertices/nodes.
The edges (also known as hyperedges) of a hypergraph are arbitrary nonempty sets of vertices. A k-hypergraph has all such hyperedges connecting exactly k vertices; a normal graph is thus a 2-hypergraph (as one edge connects 2 vertices).

Hypergraph representation :
An undirected hypergraph H is defined as a pair H = (V,E), where V is a set of items known as nodes or vertices, and E is a set of non-empty subsets of V, known as hyperedges or edges (in an undirected hypergraph).
Here, E is a subset of P(X), where P(X) is the Power Set of X.
Each hyperedge can be represented as a closed curve containing its members to create hypergraphs. 
Example –

Hypergraph H

H(V) = { A, B, C, D, E}
H(E) = {e1, e2, e3 } = { {A, D}, {D, E}, {A, B, C} }

Order & Size Of Hypergraph :
The order of the hypergraph = the size of the vertex set, and
The size of the hypergraph = the size of the edges set.

Order(H) = |H(V)|
Size(H)= |H(E)|

The above hypergraph has –
Order(H) = |H(V)| = 5
Size(H)= |H(E)| = 3

Hypergraph To Bi-Partite Graph :
Because it is always possible (though not always convenient) to express a hypergraph by a bipartite graph, hypergraphs are rarely utilized. The vertex set in a bipartite graph can be divided into two subsets, P and Q, with each edge connecting a vertex in P to a vertex in Q.
We simply represent the vertices of H as vertices in Q and the hyperedges of H as vertices in P, and insert an edge (p, q) whenever s is a member of the hyperedge t in H.
 

A hypergraph is depicted in two ways. Five vertices on the left are connected by three hyperedges. On the right, the same five vertices are joined to new vertices(three) representing the hyperedges by ordinary edges.

Properties Of Hypergraph :
A hypergraph can have a number of different properties, including –

  • Empty Hypergraph – 
    There are no edges in the empty hypergraph. As you see, the figure below has no edges but 5 vertices named : A B, C, D, E
     

Empty Hypergraph

  • d – Regular – 
    Every vertex has a degree of d, implying that it is contained in precisely d hyperedges.
    Example : Below, the hypergraph is 2- regular because all the vertices (A, B & C) have the same degree : 2

 2- regular hypergraph

  • 2-colorable – 
    Its vertices can be divided into two classes, P and Q, so that each hyperedge with a cardinality of at least 2 has at least one vertex from each class.
  • Non – Simple – 
    Has loops (hyperedges with a single vertex) or repeating edges (two or more edges with the same set of vertices)
    Example – 
    In the graph below, we can see 2 loops : e1 & e2e, so it is a non-simple hypergraph.

Non – SImple HyperGraph

  • Simple – 
    There are no loops or repeating edges in this design.
  • k -uniform – 
    Each hyperedge is made up of exactly k vertices.
    Example – 
    In the below hypergraph we can see that each hyperedge (e1 , e2, e3, e4) consists of 2 vertices, therefore it’s a 2- uniform hypergraph.

2-Uniform HyperGraph

  • k -partite – 
    Each hyperedge comprises exactly one vertex of each type, and the vertices are divided into k parts.
    Example – 
    In the hypergraph below, say,  the vertices are partitioned into 3 parts :m (A, D),(B,E) & (D,F) . Note that each hyperedge contains only one vertex of each partition. 
     

3-partite hypergraph


Similar Reads

Types of Sets in Discrete Structure or Discrete Mathematics
In this article, we will discuss Types of Sets in Discrete Structure or Discrete Mathematics. Also, we will cover the examples. Let's discuss one by one. Partially Ordered Set or POSET : Partial Ordered Set (POSET) consists of sets with three binary relations as follows. Reflexive Relation -One in which every element maps to itself. Anti-Symmetric
3 min read
Discrete Mathematics | Types of Recurrence Relations - Set 2
Prerequisite - Solving Recurrences, Different types of recurrence relations and their solutions, Practice Set for Recurrence Relations The sequence which is defined by indicating a relation connecting its general term an with an-1, an-2, etc is called a recurrence relation for the sequence. Types of recurrence relations First order Recurrence relat
4 min read
Discrete Mathematics | Representing Relations
Prerequisite - Introduction and types of Relations Relations are represented using ordered pairs, matrix and digraphs: Ordered Pairs - In this set of ordered pairs of x and y are used to represent relation. In this corresponding values of x and y are represented using parenthesis. Example: {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)} This represent s
2 min read
Discrete Mathematics | Hasse Diagrams
A Hasse diagram is a graphical representation of the relation of elements of a partially ordered set (poset) with an implied upward orientation. A point is drawn for each element of the partially ordered set (poset) and joined with the line segment according to the following rules: If p<q in the poset, then the point corresponding to p appears l
4 min read
PDNF and PCNF in Discrete Mathematics
PDNF: It stands for Principal Disjunctive Normal Form. It refers to the Sum of Products, i.e., SOP. For eg. : If P, Q, R are the variables then (P . Q' . R) + (P' . Q . R) + (P . Q . R') is an example of an expression in PDNF. Here '+' i.e. sum is the main operator. You might be confused if there exists any difference between DNF (Disjunctive Norma
2 min read
Four Color Theorem and Kuratowski’s Theorem in Discrete Mathematics
Planar Graph :If a graph can be drawn on the plane without crossing, it is said to be planar.Coloring of a simple graph is the assignment of color to each vertex of the graph so that no two adjacent vertices are assigned the same color. Bi-Partite Graphs : A bipartite graph, also known as a bi-graph, is a set of graph vertices that has been dissect
6 min read
Arguments in Discrete Mathematics
Arguments are an important part of logical reasoning and philosophy. It also plays a vital role in mathematical proofs. In this article, we will throw some light on arguments in logical reasoning. Logical proofs can be proven by mathematical logic. The proof is a valid argument that determines the truth values of mathematical statements. The argume
4 min read
Types of Proofs - Predicate Logic | Discrete Mathematics
Introduction :The most basic form of logic is propositional logic. Propositions, which have no variables, are the only assertions that are considered. Because there are no variables in propositions, they are either always true or always false .Example - P : 2 + 4 = 5. (Always False) is a proposition.Q : y * 0 = 0. (Always true) is a proposition. Th
7 min read
Principal Ideal Domain (P.I.D.) | Discrete Mathematics
Prerequisite : Rings in Discrete Mathematics Introduction :Algebraic Structure : A non-empty set G equipped with 1 or more binary operations is called algebraic structure.Example - (N,+) where N is a set of natural numbers and(R, *) R is a set of real numbers. Here ' * ' specifies a multiplication operation. RING : An algebraic structure that sets
6 min read
Elementary Matrices | Discrete Mathematics
Prerequisite : Knowledge of Matrices & Identity Matrix Introduction :A matrix is a collection of numbers arranged in a row-by-row and column-by-column arrangement. The elements of a matrix must be enclosed in parenthesis or brackets.Example - The 3 * 3 matrix means a matrix with 3 rows & 3 columns with a total of 9 elements. (3*3 = 9) [capt
3 min read
Article Tags :