15 lines
335 B
TypeScript
15 lines
335 B
TypeScript
export class Edge {
|
|
public origin: string;
|
|
public target: string;
|
|
|
|
public constructor (origin: string, target: string) {
|
|
this.origin = origin;
|
|
this.target = target;
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
public toString (): string {
|
|
return `${this.origin} -> ${this.target}`;
|
|
}
|
|
}
|