This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface NodeMapping { | |
[index: number]: { | |
[index: number]: string | |
} | |
} | |
class Graph { | |
private graph: {[index: string]: string[]}; | |
constructor(labels: string[], map: NodeMapping, edges: [number, number][][]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Edge { | |
node: string; | |
weight: number; | |
} | |
class Graph { | |
public adjList: Map<string, Edge[]> | |
constructor() |
OlderNewer