---
title: "Discussion on \"Graph Data Structure\" | Hashnode"
description: "Discussion on \"Graph Data Structure\". Initializing a Graph\nWhen a new graph object is created using the Graph() constructor, an empty dictionary is initialized in the __init__ method:\ndef __init__(self):\n    self.adj_list = {}\n\nThis dictionary will hold the adjacency list for the graph. ..."
url: "https://hashnode.com/posts/graph-data-structure/64482d68c2c2559960258e5a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Graph Data Structure](https://kenscode.hashnode.dev/graph-data-structure?utm_source=hashnode&utm_medium=feed)

Initializing a Graph When a new graph object is created using the Graph() constructor, an empty dictionary is initialized in the \_\_init\_\_ method: def \_\_init\_\_(self): self.adj\_list = {} This dictionary will hold the adjacency list for the graph. ...

Apr 25, 2023 · 3 min read · kenscode.hashnode.dev  
Read the article

-   [#graph](https://hashnode.com/tag/graph)
-   [#coding](https://hashnode.com/tag/coding)
-   [#interview](https://hashnode.com/tag/interview)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Kenneth Darrick Quiggins](https://hashnode.com/@kashq502)

@kashq502 · Louisville, Kentucky

  
[View profile](https://hashnode.com/@kashq502)

Software Developer/Full-Time Student

Software Developer from Louisville, Kentucky. I went from prison to Python. What's your story?

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
