You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />
In undirected method we have numbered a node as 1,2,3,4,5. therefore:<br />
V(G)={1,2,3,4,5}&<br />
E(G)={(1,2),(2,4),(2,3),(1,4),(1,5),(4,5),(3,4)}<br />
This is to be notice that edge incident with node 1& 2 is written as (1,2) ;we<br />
could also written it as (2,1).And this may same for all other edges .<br />
2. Directed:In an directed graph , pair of vertices representing any edges is<br />
ordered .if e=(v,w) ,then v is initial vertex and w is the final vertex<br />
subsequently (v,w )&(w,v). Represents two different edges .<br />
a directed graph may be<br />
pictorially represented as in fig C(above).<br />
GRAPH REPRESENTATION:<br />
Graph is a mathematical structure and finds its applications in many areas of<br />
interest in which problem need to be solved <strong>using</strong> computers .thus ,this<br />
mathematical structures must be represent in some kind of data structure<br />
.there are three such representations which are commonly used.<br />
Prepared By :<br />
Er. Harvinder Singh<br />
Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 77 ‐