Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 684 Bytes

Ex_4_1_02.md

File metadata and controls

45 lines (33 loc) · 684 Bytes
title date draft tags categories
Algorithm4 Java Solution 4.1.02
2020-01-28 06:59:15 +0800
false
JAVA
TECH
archives

4.1.02

Problem:

4.1.2 Draw,in the style of the figure in the text(page524), the adjacency lists built by Graph’s input stream constructor for the file tinyGex2.txt depicted at left.

2020-02-04_000.jpg

Solution:

//    12 vertices, 16 edges
//    0: 5 2 6
//    1: 4 8 11
//    2: 5 6 0 3
//    3: 10 6 2
//    4: 1 8
//    5: 0 10 2
//    6: 2 3 0
//    7: 8 11
//    8: 1 11 7 4
//    9:
//    10: 5 3
//    11: 8 7 1

Reference: