import type { Stream, Streamable } from '../../../../../stream/mod.ts';
import { HashMap } from '../../../../../hashed/mod.ts';
import type { EdgeValuedGraphHashedCreators, ValuedGraphElement,} from '../../../../../graph/custom/index.ts';
import { EdgeValuedGraphBase, ValuedGraphContext } from '../../../../../graph/custom/index.ts';
export interface EdgeValuedGraphHashed<N, V> extends EdgeValuedGraphBase<N, V, EdgeValuedGraphHashed.Types> {}
export namespace EdgeValuedGraphHashed { export interface NonEmpty<N, V> extends EdgeValuedGraphBase.NonEmpty<N, V, EdgeValuedGraphHashed.Types>, Omit< EdgeValuedGraphHashed<N, V>, keyof EdgeValuedGraphBase.NonEmpty<any, any, any> >, Streamable.NonEmpty<ValuedGraphElement<N, V>> { stream(): Stream.NonEmpty<ValuedGraphElement<N, V>>; }
export interface Builder<N, V> extends EdgeValuedGraphBase.Builder<N, V, EdgeValuedGraphHashed.Types> {}
export interface Context<UN> extends EdgeValuedGraphBase.Context<UN, EdgeValuedGraphHashed.Types> { readonly typeTag: 'EdgeValuedGraphHashed'; }
export interface Types extends EdgeValuedGraphBase.Types { readonly normal: EdgeValuedGraphHashed<this['_N'], this['_V']>; readonly nonEmpty: EdgeValuedGraphHashed.NonEmpty<this['_N'], this['_V']>; readonly context: EdgeValuedGraphHashed.Context<this['_N']>; readonly builder: EdgeValuedGraphHashed.Builder<this['_N'], this['_V']>; readonly linkMap: HashMap<this['_N'], HashMap<this['_N'], this['_V']>>; readonly linkMapNonEmpty: HashMap.NonEmpty< this['_N'], HashMap<this['_N'], this['_V']> >; readonly linkMapContext: HashMap.Context<this['_N']>; readonly linkConnectionsContext: HashMap.Context<this['_N']>; readonly linkMapBuilder: HashMap.Builder< this['_N'], HashMap.Builder<this['_N'], this['_V']> >; readonly linkConnectionsBuilder: HashMap.Builder<this['_N'], this['_V']>; readonly linkConnections: HashMap<this['_N'], this['_V']>; }}
function createContext<UN>(options?: { linkMapContext?: HashMap.Context<UN>; linkConnectionsContext?: HashMap.Context<UN>;}): EdgeValuedGraphHashed.Context<UN> { return Object.freeze( new ValuedGraphContext<UN, 'EdgeValuedGraphHashed', any>( false, 'EdgeValuedGraphHashed', options?.linkMapContext ?? HashMap.defaultContext(), options?.linkConnectionsContext ?? HashMap.defaultContext() ) );}
const _defaultContext: EdgeValuedGraphHashed.Context<any> = createContext();
export const EdgeValuedGraphHashed: EdgeValuedGraphHashedCreators = Object.freeze({ ..._defaultContext, createContext, defaultContext<UN>(): EdgeValuedGraphHashed.Context<UN> { return _defaultContext; }, });