Skip to content

Instantly share code, notes, and snippets.

View Lucascoorek's full-sized avatar
❤️

Łukasz Kurek Lucascoorek

❤️
View GitHub Profile
const PriorityQueue = require("./minBinaryHeapPriority");
class WeightedGraph {
constructor() {
this.adjacencyList = {};
}
addVertex(vertex) {
if (!this.adjacencyList[vertex]) this.adjacencyList[vertex] = [];
}
addEdge(vertexOne, vertexTwo, weight) {
<!DOCTYPE html>
<html lang="pl-PL">
<head>
<meta charset="utf-8”>
<title> m.pire Agencja Reklamowa </title>
<meta name="description" content="SZUKAMY WEBMASTERA"">
</head>
</style><script></script>
<body>