improved API request wrapper, partial completion of operations

This commit is contained in:
2025-03-13 15:15:43 -07:00
parent 7eec2adc7a
commit 17e0480f83
16 changed files with 320 additions and 282 deletions

View File

@@ -1,5 +1,5 @@
export type GNode = string;
export type GEdge = { from: string; to: string };
type GNode = string;
type GEdge = { from: string; to: string };
/**
* Directed graph, may or may not be connected.
@@ -20,7 +20,7 @@ export type GEdge = { from: string; to: string };
* console.log(g.detectCycle()); // true
* ```
*/
export class myGraph {
class myGraph {
nodes: GNode[];
edges: GEdge[];
/**
@@ -135,4 +135,5 @@ export class myGraph {
}
}
export { type GNode, type GEdge, myGraph };
export default myGraph;