2020-04-24 12:02:32 +02:00

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}`;
}
}