Unformatted text preview:

LAB 13 Data Structure Nadine ElHaddad S22107736 import java util Arrays public class Graph static void printAdjacencyMatrix int graph System out println Adjacency Matrix for int row graph System out println Arrays toString row static void printGraphWithAdjacentVertices int graph System out println nGraph with Adjacent Vertices for int i 0 i graph length i System out print Node i for int j 0 j graph i length j if graph i j 1 System out print j System out println public static void main String args int graph 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 printAdjacencyMatrix graph printGraphWithAdjacentVertices graph


View Full Document

IIT Chicago-Kent CS 10001 - LAB 13 Data Structure

Download LAB 13 Data Structure
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view LAB 13 Data Structure and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view LAB 13 Data Structure and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?