Last active
July 17, 2017 18:47
-
-
Save dslmeinte/37783be232f7da4d1ff1f63cfd22f32f to your computer and use it in GitHub Desktop.
Model of a directed graph (pseudo-TS-code)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Point { x: number; y: number; } | |
export class Vertex { id: number; position: Point; toIds: number[]; } | |
export class Model { vertices: Vertex[]; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment