Skip to content

Instantly share code, notes, and snippets.

View bvsbrk's full-sized avatar
🎯
Focusing

bharath bvsbrk

🎯
Focusing
View GitHub Profile
@bvsbrk
bvsbrk / VertexGist.py
Created September 16, 2017 05:10
Description
class Vertex:
def __init__(self, id):
self.connections = {}
self.id = id
def addNeighbor(self, id, weight):
if id not in self.connections:
@bvsbrk
bvsbrk / Graph
Created September 16, 2017 05:40
Description about Graph
from Vertex import Vertex
class Graph:
def __init__(self):
self.verticesList = {}
def addVertex(self, key):
@bvsbrk
bvsbrk / word-ladder-game
Created September 16, 2017 06:21
description of game
from Vertex import Vertex
from Graph import Graph
def main():
wordList = ["foul", "foil", "fool", "fail", "fall", "pall",
"poll", "pole", "pool", "cool", "pope", "pale",
"sale", "page", "sage"]
@bvsbrk
bvsbrk / extensions.json
Created March 5, 2021 10:43
VSCode's Settings - Syncing
[
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.0.5"
},
{
"id": "ahmadawais.shades-of-purple",
"name": "shades-of-purple",