0% found this document useful (0 votes)
3K views3 pages

09 Hands-On Activity 1 - Arg: Name: Maryruim C. Canete Bscpe 301

This document contains the output of a hands-on activity where the student created an adjacency matrix and adjacency list to represent a graph. The adjacency matrix shows the connections between 7 nodes (A, B, C, D, E, F, G). The adjacency list also represents the same graph connections in a list format with each node and its connected neighbors.

Uploaded by

Ming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views3 pages

09 Hands-On Activity 1 - Arg: Name: Maryruim C. Canete Bscpe 301

This document contains the output of a hands-on activity where the student created an adjacency matrix and adjacency list to represent a graph. The adjacency matrix shows the connections between 7 nodes (A, B, C, D, E, F, G). The adjacency list also represents the same graph connections in a list format with each node and its connected neighbors.

Uploaded by

Ming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: Maryruim C.

Canete
BSCpE 301

09 Hands-on Activity 1 - ARG


Source Code

This study source was downloaded by 100000839104976 from CourseHero.com on 01-19-2022 01:34:31 GMT -06:00

https://www.coursehero.com/file/83012462/09-Hands-on-Activity-1-ARG-Data-Structures-and-Algorithms-1docx/
Output

Activity (2 items x 10 points)


Create an adjacency matrix and an adjacency list based on the
given graph.
Adjacency Matrix

A B C D E F G

A 0 1 0 0 0 0 0

B 1 0 1 0 0 0 0

C 0 1 0 1 1 0 0

D 0 0 1 0 1 1 1

E 0 0 1 1 0 1 0

F 0 0 0 1 1 0 0

G 0 0 0 1 0 0 0

This study source was downloaded by 100000839104976 from CourseHero.com on 01-19-2022 01:34:31 GMT -06:00

https://www.coursehero.com/file/83012462/09-Hands-on-Activity-1-ARG-Data-Structures-and-Algorithms-1docx/
Adjacent List

A B

B A C

C B E
D

D C E F G

E C D F

F D E

G D

This study source was downloaded by 100000839104976 from CourseHero.com on 01-19-2022 01:34:31 GMT -06:00

https://www.coursehero.com/file/83012462/09-Hands-on-Activity-1-ARG-Data-Structures-and-Algorithms-1docx/
Powered by TCPDF (www.tcpdf.org)

You might also like