# 20202313 2021-2022-1 《数据结构与面向对象程序设计》实验九报告(#20202313 2021-2022-1 data structure and object oriented programming experiment 9 report)

课程:《程序设计与数据结构》班级: 2023姓名: 苏星宇学号:20202313实验教师:王志强实验日期:2021年12月18日必修/选修: 必修## 1.实验内容

(1) 初始化:根据屏幕提示(例如:输入1为无向图,输入2为有向图)初始化无向图和有向图(可用邻接矩阵,也可用邻接表),图需要自己定义(顶点个数、边个数,建议先在草稿纸上画出图,然后再输入顶点和边数)(2分)

————————

Course: program design and data structure class: 2023 Name: Su Xingyu student number: 20202313 experimental teacher: Wang Zhiqiang experimental date: December 18, 2021 compulsory / elective: compulsory ## 1 Experimental content

(1) Initialization: initialize an undirected graph and a directed graph according to the screen prompts (for example, input 1 is an undirected graph and input 2 is a directed graph) (adjacency matrix or adjacency table can be used). The graph needs to be defined by itself (the number of vertices and edges. It is recommended to draw the graph on the draft paper first, and then input the number of vertices and edges) (2 points)