Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ export class Graph<Node = string, LinkProps = never> {
}

/**
* Get the properties of the given edge or undefined if none are set.
* Get the properties of the given edge or undefined if the edge doesn't exist .
*/
getEdgeProperties(source: Node, target: Node): LinkProps {
return this.edgeProperties.get(source)?.get(target) as LinkProps;
getEdgeProperties(source: Node, target: Node): LinkProps | undefined {
return this.edgeProperties.get(source)?.get(target);
}

/**
Expand Down