Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.

Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.



play-rounded-fill play-rounded-outline play-sharp-fill play-sharp-outline
pause-sharp-outline pause-sharp-fill pause-rounded-outline pause-rounded-fill
00:00

Parallel Edge, Self Loop, Simple Graph, Multigraph, and Pseudograph in Discrete Mathematics

Graphs are fundamental structures in Discrete Mathematics and Computer Science, used to model relationships between objects. Let’s explore different types of graphs and their properties.

1. Basic Terminology in Graph Theory

A graph G=(V,E)G = (V, E) consists of:

  • V (Vertices or Nodes): The set of points.

  • E (Edges or Links): The set of connections between nodes.

2. Parallel Edges (Multiple Edges)

Definition: Parallel edges (also called multiple edges) occur when two or more edges connect the same pair of vertices.
Example: In a railway network, two different train routes may connect the same two cities.

Graph Representation:

(A) --- (B)
(A) === (B) <-- Parallel edges

Allowed in: Multigraphs and Pseudographs
Not allowed in: Simple Graphs

3. Self-Loop

Definition: A self-loop is an edge that connects a vertex to itself.
Example: In a social network, a person liking their own post can be represented as a self-loop.

Graph Representation:

(A) ---- (B)
| |
(A) (C)

(A has a self-loop)

Allowed in: Pseudographs
Not allowed in: Simple Graphs and Multigraphs

4. Simple Graph

Definition: A simple graph is a graph that does not have:
 Parallel edges
 Self-loops

Example: A friendship network, where each edge represents a unique connection between two people.

Graph Representation:

(A) ---- (B)
| |
(C) ---- (D)

Characteristics:

  • Each edge connects two distinct vertices.

  • At most one edge between any two vertices.

5. Multigraph

Definition: A multigraph is a graph that allows parallel edges but does not allow self-loops.
Example: A road network where two different roads exist between the same two cities.

Graph Representation:

(A) === (B)
(A) ---- (C)

Allowed: Parallel edges
Not allowed: Self-loops

6. Pseudograph

Definition: A pseudograph is a generalized graph that allows both parallel edges and self-loops.
Example: A computer network where a server may have multiple direct connections to the same device, and it may also loop back to itself for redundancy.

Graph Representation:

(A) === (B)
| |
(A) ---- (C)

Allowed: Parallel edges
Allowed: Self-loops

7. Comparison Table

Graph Type Self-Loops Parallel Edges Example
Simple Graph  No  No Social Network
Multigraph  No  Yes Road Network
Pseudograph  Yes  Yes Computer Network

8. Applications in Computer Science

Simple GraphsSocial networks, communication systems
MultigraphsTransport networks (railway, road, airline routes)
PseudographsComputer networks, self-feedback loops in circuits

Conclusion

  • Parallel Edges: Multiple connections between two nodes.

  • Self-Loop: A node connected to itself.

  • Simple Graph: No self-loops, no parallel edges.

  • Multigraph: Allows parallel edges, but no self-loops.

  • Pseudograph: Allows both parallel edges and self-loops.

Would you like practice questions or Python code to implement graphs?

Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.



Leave a Reply

Your email address will not be published. Required fields are marked *

error: