import { IBaseEdge , BaseEdge , BaseEdgeConfig } from "../base/BaseEdge" ; import * as $N from "../base/BaseNode" ; import { GENERIC_TYPES } from "@/config/run_config" ; export interface ITypedEdge extends IBaseEdge { readonly type : string ; } export interface TypedEdgeConfig extends BaseEdgeConfig { type ? : string ; } class TypedEdge extends BaseEdge implements ITypedEdge { protected _type : string ; constructor ( protected _id , protected _node_a , protected _node_b , config = { } ) { super ( _id , _node_a , _node_b , config ) ; this . _type = config . type || GENERIC_TYPES . Edge ; } get type ( ) { return this . _type ; } } export { TypedEdge } ;