Java presentation final

13
GRAPHS Created By Wesley Wilson Shrayas Suryakumar Tahir Hussain Querashi

Transcript of Java presentation final

Page 1: Java presentation final

GRAPHS

Created By Wesley Wilson Shrayas Suryakumar Tahir Hussain Querashi

Page 2: Java presentation final

IntroductionBasically we use word graph for the mention any roadmap,Network design , root design , network design ,etc.

Graphs uses for simulating electrical circuits which finds outs the current and voltage passes through various electrical components presents in the circuit, telephone network connection , internet connection

Page 3: Java presentation final

Defination of Graph :-

Graph Theory

A graph contains pair of finite set of vertex and edges.

Where V=Set of vertices/nodes E=Set of edges/arcs

Page 4: Java presentation final

Size of graph :-

Number of elements in the vertex set is called as size of graph.

Sub-Graph :-

Let G={V,E} and G’={V’,E’} , If V’ᴄ V and E’ᴄ E then G’ is called as Sub-Graph of G’

Page 5: Java presentation final

Spanning Sub-Graph :-

Let G={V,E} and G’={V’,E’} , If V’= V and then G’ is called as Sub-Graph of G’.

Completed Graph :-

Completed Graph is a simple graph in which every vertex connected by edge to the remaining vertices. If there are n vertices then there are total edges in completed graph.

Page 6: Java presentation final

Degree of vertex :-

The number of edges that are incident upon the vertex is called as degree

Page 7: Java presentation final

Spanning Tree :-

A graph is connected acyclic spanning subgraph.

Diagraph :-

If each edge is represented by a pair of ordered vertices that is edge has specific direction.

Page 8: Java presentation final

Indegree of vertex :-

Total no. of incoming edges for vertex in the diagraph.

Outdegree of vertex :-

Total no. Of outgoing edges for vertex in the diagraph.

Page 9: Java presentation final

Weighted diagraph :-

A weight may be associated with each edge of a graph.

Page 10: Java presentation final

Graph Representation

1. Adjacency Matrix :-

An Adjacency matrix for the graph is the two dimensional Boolean array.

Page 11: Java presentation final

Incident Matrix :-

An incident matrix for the graph is the two-dimensional integer array.

Page 12: Java presentation final

Adjacency List :-

A list contains one element for each vertex in the graph and in which each vertex list element contains a list of the vertices that are adjacent to its vertex, such list is called Adjacency List.Edge List is a secondary List for each vertex.

Page 13: Java presentation final

Thank You!