Graph Data Structure
Graph Data Structure
http://www.tutorialspoint.com/data_structures_algorithms/graph_data_structure.htm
Copyright tutorialspoint.com
A graph is a pictorial representation of a set of objects where some pairs of objects are connected
by links. The interconnected objects are represented by points termed as vertices, and the links
that connect the vertices are called edges.
Formally, a graph is a pair of sets V, E, where V is the set of vertices and E is the set of edges,
connecting the pairs of vertices. Take a look at the following graph
Basic Operations
Following are basic primary operations of a Graph which are following.
Add Vertex add a vertex to a graph.
Add Edge add an edge between two vertices of a graph.
Display Vertex display a vertex of a graph.
To know more about Graph, please read Graph Theory Tutorial. We shall learn traversing a graph
in coming chapters.
Loading [MathJax]/jax/output/HTML-CSS/jax.js