what is a graph

11 months ago 34
Nature

In mathematics, a graph is a structure that represents a set of objects in which some pairs of the objects are related). The objects correspond to mathematical abstractions called vertices, nodes, or points, and each of the related pairs of vertices is called an edge, link, or line). Graphs are typically depicted in diagrammatic form as a set of dots or circles for the vertices, joined by lines or curves for the edges). Graphs are one of the objects of study in discrete mathematics and are the basic subject studied by graph theory).

In general, a graph is a pictorial representation or a diagram that represents data or values in an organized manner. The points on the graph often represent the data, and the lines or curves connecting them show the relationship between the data points. There are different types of graphs, including:

  • Pictograph: The representation of information through pictures is called a pictograph. A certain number of items is represented by each picture.

  • Bar Graph: A bar graph is the representation of numerical data by rectangles (or bars) of equal width and varying height. The gap between one bar and another is uniform throughout. Bar graphs can be either horizontal or vertical. The height or length of each bar relates directly to its value.

  • Line Graph: A line graph uses dots connected by lines to show the relationship between data points. It is useful for showing trends over time.

Graphs are used to represent accrued data, which can be either quantitative or qualitative data. In computer science, a graph is a non-linear data structure consisting of vertices and edges. The vertices are sometimes also referred to as nodes, and the edges are lines or arcs that connect any two nodes in the graph.