Let G be a directed graph on n vertices and maximum possible directed edges; assume that n ≥ 2.
(a) How many directed edges are in G? Present such a digraph when n = 3 assuming vertices are 1, 2, and 3. You do not have to present a diagram, if you do not want to; you can simply present the directed edges as a set of ordered pairs.
b) Is G, as specified in the problem, reflexive? Justify briefly.
c) Is G, as specified in the problem, symmetric? Justify briefly.
(d) Is G, as specified in the problem, transitive? Justify briefly.
(e) Is G as specified in the problem, antisymmertic? Justify briefly.
a) In case of directed graph, each vertex can connect to n-1 other vertex. So total edges = n x (n-1)
but since the edges are directive, then every edge should be counted once and hence total possible directed edge = (n x (n - 1)) / 2
For n=3, total possible edges = (3 x 2) / 2 = 3.
So, let vertices = {1,2,3} then possible edges are {(1,2),(1,3),(2,3)}. Order pair can be revesred as per the direction of the edge. But, at all possible times, there will be just 3 edges here.
b) For G to be reflexive every node should have self loop i.e a edge set of {(1,1),(2,2),(3,3)} can be considered as reflexive.
But, G fails to have self loops. As a simple gaph is not allowed for self loops.
Hence G cannot be reflexive
c) For G to be symmetric, for every every vertex (a,b) there should be (b,a).
But since our graph is directive. so edge (1,2) is not equal to edge (2,1).
Hence, G cannot be symmetric.
d) For G to be transitive, If there exist an edge (a,b) and (b,c) then there must be an edge (a,c)
In our graph G, It is possible as for the existence of edge (1,2) and (2,3) there can exist an edge (1,3) making the graph transitive.
Hence, G can be transitive
Let G be a directed graph on n vertices and maximum possible directed edges; assume that...
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...
What is the maximum possible number of edges in a graph with n vertices if: (a) the graph is simple? (b) the graph is acyclic? (c) the graph is planar? Try to justify your answers. [Hint: first look at graphs with few vertices.] Need a clear answer with good neat handwriting please.
Let G be a graph with n vertices and n edges. (a) Show that G has a cycle. (b) Use part (a) to prove that if G has n vertices, k components, and n − k + 1 edges, then G has a cycle.
PLEASE HELP Let G is a graph with 2n vertices and n^2 edges. An amicable pair of vertices is an unordered pair (u, v), such that dist(u, v) = 2. Prove that G has at least n(n − 1) amicable pairs of vertices.
Most Edges. Prove that if a graph with n vertices has chromatic number n, then the graph has n(n-1) edges. Divide. Let V = {1, 2, ..., 10} and E = {(x, y) : x, y € V, x + y, , and a divides y}. Draw the directed graph with vertices V and directed edges E.
49.12. Let G be a graph with n 2 2 vertices. a. Prove that if G has at least ("21) +1 edges, then G is connected. b. Show that the result in (a) is best possible; that is, for each n 2 2, prove there is a graph with ("2) edges that is not connected. 49.12. Let G be a graph with n 2 2 vertices. a. Prove that if G has at least ("21) +1 edges, then G is...
Help. I need to write a small program that executes the following graph algorithms in any language: 1. All-Pairs Shortest Path (Floyd-Warshall). It must ask for the vertices and edges for the user to enter them. As an output, deploy the resulting matrix. This will be done only for directed graphs. 2. Kruskal or Prim algorithm whatever you want to do. It must ask for a graph and present it at the end. The minimum coating tree that results from...
Let G be a connected graph with n vertices and n edges. How many cycles does G have? Explain your answer.
Question 9 3 pts What is the maximum possible number of edges in a directed graph with no self loops having 8 vertices? 0 56 O 28 0 64 256
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