a. b. c. d. e. What are the vertices? Is this graph connected? What is the...
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...
Recall the definition of the degree of a vertex in a graph. a) Suppose a graph has 7 vertices, each of degree 2 or 3. Is the graph necessarily connected ? b) Now the graph has 7 vertices, each degree 3 or 4. Is it necessarily connected? My professor gave an example in class. He said triangle and a square are graph which are not connected yet each vertex has degree 2. (Paul Zeitz, The Art and Craft of Problem...
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...
8. For each of the following, either draw a undirected graph satisfying the given criteria or explain why it cannot be done. Your graphs should be simple, i.e. not having any multiple edges (more than one edge between the same pair of vertices) or self-loops (edges with both ends at the same vertex). [10 points] a. A graph with 3 connected components, 11 vertices, and 10 edges. b. A graph with 4 connected components, 10 vertices, and 30 edges. c....
Question 1# (a) Let G be a connected graph and C a non-trivial circuit in G. Prove directly that if an edge e fa, b is removed from C then the subgraph S C G that remains is still connected. "Directly' means using only the definitions of the concepts involved, in this case connected' and 'circuit'. Hint: If z and y are vertices of G connected by path that includes e, is there an alternative path connecting x to y...
A bipartite graph is a graph in which the vertices can be divided into two disjoint nonempty sets A and B such that no two vertices in A are adjacent and no two vertices in B are adjacent. The complete bipartite graph Km,n is a bipartite graph in which |A| = m and |B| = n, and every vertex in A is adjacent to every vertex in B. (a) Sketch K3,2. (b) How many edges does Km,n have? (c) For...
8. For each of the following, either draw a undirected graph satisfying the given criteria or explain why it cannot be done. Your graphs should be simple, i.e. not having any multiple edges (more than one edge between the same pair of vertices) or self-loops (edges with both ends at the same vertex). [10 points] a. A graph with 3 connected components, 11 vertices, and 10 edges. b. A graph with 4 connected components, 10 vertices, and 30 edges. c....
Let G = (V;E) be an undirected and unweighted graph. Let S be a subset of the vertices. The graph induced on S, denoted G[S] is a graph that has vertex set S and an edge between two vertices u, v that is an element of S provided that {u,v} is an edge of G. A subset K of V is called a killer set of G if the deletion of K kills all the edges of G, that is...
Below is the Graph file that needs to be modified(using Python3) : #!/usr/bin/python3 # Simple Vertex class class Vertex: """ Lightweight vertex structure for a graph. Vertices can have the following labels: UNEXPLORED VISITED Assuming the element of a vertex is string type """ __slots__ = '_element', '_label' def __init__(self, element, label="UNEXPLORED"): """ Constructor. """ self._element = element self._label = label def element(self): """ Return element associated with this vertex. """ return self._element def getLabel(self): """ Get label assigned to...
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...