python data structures graph is pictorial representation of set of objects where some pairs of objects are connected by links the interconnected objects are represented by points termed as verticesand the links that connect the vertices are called edges the various terms and functionalities associated with graph is described in great detail in our tutorial here in this we are going to see how to create graph and add various data elements to it using python program following are the basic operations we perform on graphs display graph vertices display graph edges add vertex add an edge creating graph graph can be easily presented using the python dictionary data types we represent the vertices as the keys of the dictionary and the connection between the vertices also called edges as the values in the dictionary take look at the following graphin the above graphv {abcdee {abacbdcddewe can present this graph in python program as belowcreate the dictionary with graph elements graph " [" "," "]" [" "" "]" [" "" "]" [" "]" [" "