Lecture 1
Lecture 1
Theory
Waqas Ali
Department of Computer Science
UET, Lahore
(Lecture # 1: January 18, 2024)
Outline
• Basic Definitions
Graph
• A Graph consists of a finite set of vertices (or nodes)
and set of Edges (or links) which connect a pair of
nodes.
• A Graph is a non-linear data structure.
Graph
• A graph is a data structure that consists of a finite set of
nodes (or vertices) and a finite set of edges (or
links) connecting them.
Average Clustering
Coefficient:
Applications of Graphs
Applications of Graph
• Graphs are used to define the flow of computation.
• Graphs are used to represent networks of communication.
• Graphs are used to represent data organization.
• Graph theory is used to find shortest path in road or
a network.
• Graph theory is used in designing of circuit connections.
• In linguistics, graphs are mostly used for parsing of
a language tree and grammar of a language tree.
• Graph theory is used to study molecules.
• Nodes in biological networks represent bimolecular such as
genes, proteins or metabolites, and edges connecting
these nodes indicate functional, physical or chemical
interactions between the corresponding bimolecular
Applications of Graph
• Nodes in biological networks represent bimolecular such as
genes, proteins or metabolites, and edges connecting
these nodes indicate functional, physical or chemical
interactions between the corresponding bimolecular.