Source code online books for professionals by professionals


Figure 2-3.  A sample graph used to illustrate various graph representations Tip



Download 4,67 Mb.
Pdf ko'rish
bet22/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   18   19   20   21   22   23   24   25   ...   266
Bog'liq
2 5296731884800181221

Figure 2-3.  A sample graph used to illustrate various graph representations
Tip
 

  For tools to help you visualize your own graphs, see the sidebar “Graph Libraries” later in this chapter.
To begin with, assume that we have numbered the nodes, that is, a = 0, b = 1, and so forth. The graph can then 
be represented in a straightforward manner, as shown in Listing 2-1. Just as a convenience, I have assigned the node 
numbers to variables with the same names as the node labels in the figure. You can, of course, just work with the 
numbers directly. Which adjacency set belongs to which node is indicated by the comments. If you want, take a 
minute to confirm that the representation does, indeed, correspond to the figure.


Chapter 2 

 the BasiCs
25

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   18   19   20   21   22   23   24   25   ...   266




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish