Data Structure: Unit IV : Multiway Search Trees and Graphs

Graph Definition

with Example | Data Structure

A graph is a collection of two sets V and E. Where V is a finite non empty set of vertices and E is a finite non empty set of edges.

Part II: Graphs

Graph Definition

A graph is a collection of two sets V and E. Where V is a finite non empty set of vertices and E is a finite non empty set of edges.

• Vertices are nothing but the nodes in the graph.

•Two adjacent vertices are joined by edges.

•Any graph is denoted as G = {V, E}

For example

Comparison between Graph and Tree


Data Structure: Unit IV : Multiway Search Trees and Graphs : Tag: : with Example | Data Structure - Graph Definition