graphable interface

This commit is contained in:
Timo Hocker 2020-05-04 20:31:03 +02:00
parent de0edfc0ac
commit f0497f163d
2 changed files with 6 additions and 0 deletions

5
lib/Graphable.ts Normal file
View File

@ -0,0 +1,5 @@
import { Graph } from './Graph';
export interface Graphable {
to_graph(g: Graph): void;
}

View File

@ -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';