From f0497f163dd115fce5f6bbe2794df6feb0003842 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 20:31:03 +0200 Subject: [PATCH] graphable interface --- lib/Graphable.ts | 5 +++++ lib/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 lib/Graphable.ts diff --git a/lib/Graphable.ts b/lib/Graphable.ts new file mode 100644 index 0000000..b6b3442 --- /dev/null +++ b/lib/Graphable.ts @@ -0,0 +1,5 @@ +import { Graph } from './Graph'; + +export interface Graphable { + to_graph(g: Graph): void; +} diff --git a/lib/index.ts b/lib/index.ts index e029ed0..279ac57 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -5,3 +5,4 @@ export { Edge } from './Edge'; export { Color } from './Color'; export { EdgeStyles, NodeStyles, GraphStyles } from './Styles'; export { GraphLayouts } from './GraphLayouts'; +export { Graphable } from './Graphable';