Question

In: Advanced Math

Use the Table button in the Rich-Text Editor to provide an adjacency matrix for a simple...

Use the Table button in the Rich-Text Editor to provide an adjacency matrix for a simple graph that meets the following requirements:

1) has 5 vertices
2) is maximal planar

Solutions

Expert Solution

Maximal Planar Graph:

A maximal planar graph is a planar graph to which no new edges can be added without violating planarity.

i.e. A planar graph is called maximal planar graph if adding an edge between any two non-adjacent vertices results in a non-planar graph.

Adjacency Matrix:

Let G be a graph with p vertices listed as . The adjacency matrix of G with respect to this particular listing of P vertices of G is matrix

where is number of edges joining vertex to

In case of simple graph the adjacency matrix

where

Following is the graph satisfying the given requirements.

Above graph is a maximal planar graph because if we add edge then it results in non-planarity of a graph.

Now we will calculate its adjacency matrix.

Procedure is explained below and then the matrix is given:

Rows are the vertices v1, v2, v3, v4 and v5

and columns are the vertices v1, v2, v3, v4 and v5

As v1 is adjacent to all the remaining vertices v2, v3, v4 and v5

Hence entries in first column and first row is 1 everywhere except at v1v1 because v1 is not adjacent to v1

As v2 is adjacent to vertices v1, v3 and v4

Hence entries in second column and second row is 1 everywhere except at v2v2 and v2v5 and v5v2 because v2 is not adjacent to v2 and also not adjacent to v5

As v3 is adjacent to all the vertices v1, v2 ,v4 and v5

Hence entries in third column and third row is 1 everywhere except at v3v3 because v3 is not adjacent to v3

As v4 is adjacent to all the vertices v1, v2 ,v3 and v5

Hence entries in fourth column and fourth row is 1 everywhere except at v4v4 because v4 is not adjacent to v4

As v5 is adjacent to vertices v1, v3 and v4

Hence entries in fifth column and fifth row is 1 everywhere except at v5v5 and v2v5 and v5v2 because v5 is not adjacent to v2 and also not adjacent to v5

v1 v2 v3 v4 v5
v1 0 1 1 1 1
v2 1 0 1 1 0
v3 1 1 0 1 1
v4 1 1 1 0 1
v5 1 0 1 1 0


Thus above is the adjacency matrix for the graph.


Related Solutions

One simple representation for a graph is to use an adjacency matrix: each of the N...
One simple representation for a graph is to use an adjacency matrix: each of the N nodes is given a unique number in the range 0 to N-1 to identify it. A large two dimensional array A with N rows and N columns is created so that A[x][y] stores the cost of travelling directly from node x to node y. if A[x][y] is zero, then there is no direct connection from x to y. A[x][y] does not need to equal...
In linux , Using a simple text editor, create a text file with the following name...
In linux , Using a simple text editor, create a text file with the following name "Test" and content: GNU GENERAL PUBLIC LICENSE The GNU General Public License is a free, copy left license for the GNU General Public License is intended to guarantee your freedom to GNU General Public License for most of our software; it applies … 2-Write the command to create the text file. 3-Print the file permissions. 4-Create a directory named "361" 5-Copy file "Test" to...
Swift - Implement a simple text editor program that includes a text input field (with several...
Swift - Implement a simple text editor program that includes a text input field (with several lines), a text label, and two buttons, called "Open" and "Save". When the button "Save" is touched, the app will save the contents of the text input field to a data file (sample.txt). When the button "Open" is touched, the app will read the content from the data file, (sample.txt)) and feed the content into the text label. Thank you.
Word Frequencies (Concordance)    1. Use a text editor to create a text file (ex: myPaper.txt)...
Word Frequencies (Concordance)    1. Use a text editor to create a text file (ex: myPaper.txt) It should contain at least 2 paragraphs with around 200 or more words. 2. Write a Python program (HW19.py) that asks the user to provide the name of the text file. Be SURE to check that it exists! Do NOT hard-code the name of the file! Use the entry provided by the user! read from the text file NOTE: (write your program so that...
Python: Word Frequencies (Concordance) 1. Use a text editor to create a text file (ex: myPaper.txt)...
Python: Word Frequencies (Concordance) 1. Use a text editor to create a text file (ex: myPaper.txt) It should contain at least 2 paragraphs with around 200 or more words. 2. Write a Python program (HW19.py) that asks the user to provide the name of the text file. Be SURE to check that it exists! Do NOT hard-code the name of the file! Use the entry provided by the user! read from the text file NOTE: (write your program so that...
The vi text editor can be a bit challenging to use at first, but once you...
The vi text editor can be a bit challenging to use at first, but once you have familiarized yourself with how it works you will find it an efficient way to create and edit text files in Linux, and UNIX as well. The key thing to remember is that vi has two operational modes: insert mode and command mode. In insert mode, everything you type is entered into your file. You can use the backspace, delete and the arrow keys....
Use Vi text editor or ATOM to create a bash script file. Use the file name...
Use Vi text editor or ATOM to create a bash script file. Use the file name ayaan.sh. The script when ran it will execute the following commands all at once as script. Test your script file make sure it works. Here is the list of actions the script will do: It will create the following directory structure data2/new2/mondaynews off your home directory. inside the mondaynews, create 4 files sports.txt, baseball.txt, file1.txt and file2.txt. Make sure file1.txt and file2.txt are hidden...
Please do the following in JAVA. Deposit and Withdrawal Files Use Notepad or another text editor...
Please do the following in JAVA. Deposit and Withdrawal Files Use Notepad or another text editor to create a text file named Deposits.txt. The file should contain the following numbers, one per line: 100.00 124.00 78.92 37.55 Next, create a text file named Withdrawals.txt. The file should contain the following numbers, one per line: 29.88 110.00 27.52 50.00 12.90 The numbers in the Deposits.txt file are the amounts of deposits that were made to a savings account during the month,...
you can use either vim or nano as text editor Implement the following code in ARM...
you can use either vim or nano as text editor Implement the following code in ARM on Raspberry Pi, compile and run. g=12, h=8, i=2, j=5; f = (g + h) - (i + j); Your program displays the message: f = (g + h) – (i + j) = 13 Note: answer should be calculated not hardcoded
Use your favorite text editor or IDE to search for occurrences of setState. Where you found...
Use your favorite text editor or IDE to search for occurrences of setState. Where you found uses of setState, refactor the code to use JavaScript functions instead of classes and the useState hook instead of setState. import React from 'react' import ColorSlider from './ColorSlider' import ColorOutput from './ColorOutput' import styles from './ColorBrowser.module.css' class ColorBrowser extends React.Component { constructor(props) { super(props) this.state = { red: Math.floor(Math.random() * 256), green: Math.floor(Math.random() * 256), blue: Math.floor(Math.random() * 256) } } updateColor(e) { this.setState({...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT