15 lines
335 B
TypeScript
Raw Normal View History

2020-04-17 15:43:34 +02:00
export class Edge {
public origin: string;
public target: string;
2020-04-24 12:02:32 +02:00
public constructor (origin: string, target: string) {
this.origin = origin;
this.target = target;
}
2020-04-17 15:43:34 +02:00
// eslint-disable-next-line @typescript-eslint/naming-convention
public toString (): string {
return `${this.origin} -> ${this.target}`;
}
}