3. Find the number of vertices and edges for the line graph L(G) of a graph...
Discrete Mathematics 6: A: Draw a graph with 5 vertices and the requisite number of edges to show that if four of the vertices have degree 2, it would be impossible for the 5 vertex to have degree 1. Repetition of edges is not permitted. (There may not be two different bridges connecting the same pair of vertices.) B: Draw a graph with 4 vertices and determine the largest number of edges the graph can have, assuming repetition of edges...
question 1 and 2 please, thank you. 1. In the following graph, suppose that the vertices A, B, C, D, E, and F represent towns, and the edges between those vertices represent roads. And suppose that you want to start traveling from town A, pass through each town exactly once, and then end at town F. List all the different paths that you could take Hin: For instance, one of the paths is A, B, C, E, D, F. (These...
Bounds on the number of edges in a graph. (a) Let G be an undirected graph with n vertices. Let Δ(G) be the maximum degree of any vertex in G, δ(G) be the minimum degree of any vertex in G, and m be the number of edges in G. Prove that δ(G)n2≤m≤Δ(G)n2
Graphs (15 points) 14. For the following graph (8 points): a. Find all the edges that are incident of v1: b. Find all the vertices that are adjacent to v3: C. Find all the edges that are adjacent to e1: d. Find all the loops: e. Find all the parallel edges: f. Find all the isolated vertices: g. Find the degree of v3: h. Find the total degree of the graph: e3 e2 V2 VI 26 e4 e7 es 05...
For a directed graph the in-degree of a vertex is the number of edges it has coming in to it, and the out- degree is the number of edges it has coming out. (a) Let G[i,j] be the adjacency matrix representation of a directed graph, write pseudocode (in the same detail as the text book) to compute the in-degree and out-degree of every vertex in the Page 1 of 2 CSC 375 Homework 3 Spring 2020 directed graph. Store results...
5. The in-degree of a vertex in a directed graph is the number of edges directed into it. Here is an algorithm for labeling each vertex with its in-degree, given an adjacency-list representation of the graph. for each vertex i: i.indegree = 0 for each vertex i: for each neighbor j of i: j.indegree = j.indegree + 1 Label each line with a big-bound on the time spent at the line over the entire run on the graph. Assume that...
(Problem R-14.16, page 678 of the text) Let G be a graph whose vertices are the integers 1 through 8, and let the adjacent vertices of each vertex be given by the table below: Vertex adjacent vertices 1 (2,3,4) 2 (1,3,4) 3 (1,2,4) 4 (1,2,3,6) 5 (6,7,8) 6 (4,5,7) 7 (5,6,8) 8 (5,7) Assume that, in a traversal of G, the adjacent vertices...
Let G (V, E) be a directed graph with n vertices and m edges. It is known that in dfsTrace of G the function dfs is called n times, once for each vertex It is also seen that dfs contains a loop whose body gets executed while visiting v once for each vertex w adjacent to v; that is the body gets executed once for each edge (v, w). In the worst case there are n adjacent vertices. What do...
Let G -(V, E) be a graph. The complementary graph G of G has vertex set V. Two vertices are adjacent in G if and only if they are not adjacent in G. (a) For each of the following graphs, describe its complementary graph: (i) Km,.ni (i) W Are the resulting graphs connected? Justify your answers. (b) Describe the graph GUG. (c) If G is a simple graph with 15 edges and G has 13 edges, how many vertices does...
7. An independent set in a graph G is a subset S C V(G) of vertices of G which are pairwise non-adjacent (i.e., such that there are no edges between any of the vertices in S). Let Q(G) denote the size of the largest independent set in G. Prove that for a graph G with n vertices, GX(G)n- a(G)+ 1.