@rimbu/graph
Advanced tools
Comparing version 0.5.11 to 0.6.0
@@ -13,3 +13,2 @@ "use strict"; | ||
this.linkConnectionsContext = linkConnectionsContext; | ||
this._empty = new graph_custom_1.GraphEmpty(this.isDirected, this); | ||
this.empty = function () { | ||
@@ -52,2 +51,3 @@ return _this._empty; | ||
}; | ||
this._empty = new graph_custom_1.GraphEmpty(isDirected, this); | ||
} | ||
@@ -54,0 +54,0 @@ GraphContext.prototype.isNonEmptyInstance = function (source) { |
@@ -27,2 +27,5 @@ "use strict"; | ||
}; | ||
GraphNonEmpty.prototype.assumeNonEmpty = function () { | ||
return this; | ||
}; | ||
GraphNonEmpty.prototype.asNormal = function () { | ||
@@ -29,0 +32,0 @@ return this; |
@@ -13,3 +13,2 @@ "use strict"; | ||
this.linkConnectionsContext = linkConnectionsContext; | ||
this._empty = new valued_graph_custom_1.ValuedGraphEmpty(this.isDirected, this); | ||
this.empty = function () { | ||
@@ -52,2 +51,3 @@ return _this._empty; | ||
}; | ||
this._empty = new valued_graph_custom_1.ValuedGraphEmpty(isDirected, this); | ||
} | ||
@@ -54,0 +54,0 @@ ValuedGraphContext.prototype.isNonEmptyInstance = function (source) { |
@@ -30,2 +30,5 @@ "use strict"; | ||
}; | ||
ValuedGraphNonEmpty.prototype.assumeNonEmpty = function () { | ||
return this; | ||
}; | ||
ValuedGraphNonEmpty.prototype.asNormal = function () { | ||
@@ -32,0 +35,0 @@ return this; |
@@ -9,3 +9,2 @@ import { StreamSource } from '@rimbu/stream'; | ||
this.linkConnectionsContext = linkConnectionsContext; | ||
this._empty = new GraphEmpty(this.isDirected, this); | ||
this.empty = () => { | ||
@@ -40,2 +39,3 @@ return this._empty; | ||
}; | ||
this._empty = new GraphEmpty(isDirected, this); | ||
} | ||
@@ -42,0 +42,0 @@ isNonEmptyInstance(source) { |
@@ -21,2 +21,5 @@ import { CustomBase } from '@rimbu/collection-types'; | ||
} | ||
assumeNonEmpty() { | ||
return this; | ||
} | ||
asNormal() { | ||
@@ -23,0 +26,0 @@ return this; |
@@ -9,3 +9,2 @@ import { StreamSource } from '@rimbu/stream'; | ||
this.linkConnectionsContext = linkConnectionsContext; | ||
this._empty = new ValuedGraphEmpty(this.isDirected, this); | ||
this.empty = () => { | ||
@@ -40,2 +39,3 @@ return this._empty; | ||
}; | ||
this._empty = new ValuedGraphEmpty(isDirected, this); | ||
} | ||
@@ -42,0 +42,0 @@ isNonEmptyInstance(source) { |
@@ -24,2 +24,5 @@ import { CustomBase } from '@rimbu/collection-types'; | ||
} | ||
assumeNonEmpty() { | ||
return this; | ||
} | ||
asNormal() { | ||
@@ -26,0 +29,0 @@ return this; |
@@ -1,3 +0,3 @@ | ||
import { RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { GraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { HashMap, HashSet } from '@rimbu/hashed'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { SortedMap, SortedSet } from '@rimbu/sorted'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Link } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -3,0 +3,0 @@ import type { GraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { HashMap, HashSet } from '@rimbu/hashed'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { SortedMap, SortedSet } from '@rimbu/sorted'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,4 +0,4 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { ArrayNonEmpty, RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { ArrayNonEmpty, RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { GraphConnect, GraphConnectNonEmpty, WithGraphValues } from '../gen-graph-custom'; | ||
@@ -5,0 +5,0 @@ import type { GraphElement, Link } from '../internal'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../common/link'; | ||
@@ -3,0 +3,0 @@ import type { GraphBase } from './graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { RelatedTo } from '@rimbu/common'; | ||
import type { RelatedTo } from '@rimbu/common'; | ||
import { StreamSource } from '@rimbu/stream'; | ||
@@ -3,0 +3,0 @@ import type { WithGraphValues } from '../../gen-graph-custom'; |
@@ -12,4 +12,4 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
readonly linkConnectionsContext: WithGraphValues<Tp, UN, any>['linkConnectionsContext']; | ||
readonly _empty: WithGraphValues<Tp, UN, any>['normal']; | ||
constructor(isDirected: Dir, typeTag: TT, linkMapContext: WithGraphValues<Tp, UN, any>['linkMapContext'], linkConnectionsContext: WithGraphValues<Tp, UN, any>['linkConnectionsContext']); | ||
readonly _empty: WithGraphValues<Tp, UN, any>['normal']; | ||
isNonEmptyInstance(source: any): source is WithGraphValues<Tp, UN, any>['nonEmpty']; | ||
@@ -16,0 +16,0 @@ empty: <N extends UN>() => WithGraphValues<Tp, N, any>["normal"]; |
@@ -1,2 +0,2 @@ | ||
import { ToJSON } from '@rimbu/common'; | ||
import type { ToJSON } from '@rimbu/common'; | ||
import { StreamSource } from '@rimbu/stream'; | ||
@@ -3,0 +3,0 @@ import type { WithGraphValues } from '../../gen-graph-custom'; |
import { CustomBase } from '@rimbu/collection-types'; | ||
import { RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
import type { RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
@@ -15,3 +15,3 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
copyE(linkMap: TpG['linkMap'], connectionSize: number): TpG['normal']; | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any; | ||
asNormal(): any; | ||
@@ -18,0 +18,0 @@ forEach(f: (node: N, index: number, halt: () => void) => void, state?: TraverseState): void; |
@@ -1,3 +0,3 @@ | ||
import { RelatedTo, ToJSON } from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { RelatedTo, ToJSON } from '@rimbu/common'; | ||
import type { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { GraphValues, WithGraphValues } from '../gen-graph-custom'; | ||
@@ -4,0 +4,0 @@ import type { Link } from '../internal'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement, Link } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { VariantGraphBase } from './graph-custom'; |
@@ -11,4 +11,4 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
readonly linkConnectionsContext: WithGraphValues<Tp, UN, any>['linkConnectionsContext']; | ||
readonly _empty: any; | ||
constructor(isDirected: boolean, typeTag: TT, linkMapContext: WithGraphValues<Tp, UN, any>['linkMapContext'], linkConnectionsContext: WithGraphValues<Tp, UN, any>['linkConnectionsContext']); | ||
readonly _empty: any; | ||
isNonEmptyInstance(source: any): source is WithGraphValues<Tp, UN, any>['nonEmpty']; | ||
@@ -15,0 +15,0 @@ empty: <N extends UN, V>() => WithGraphValues<Tp, N, V>["normal"]; |
@@ -1,2 +0,2 @@ | ||
import { Token } from '@rimbu/base'; | ||
import type { Token } from '@rimbu/base'; | ||
import { CustomBase } from '@rimbu/collection-types'; | ||
@@ -16,3 +16,3 @@ import { OptLazy, OptLazyOr, RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
copyE(linkMap: TpG['linkMap'], connectionSize: number): TpG['normal']; | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any; | ||
asNormal(): any; | ||
@@ -19,0 +19,0 @@ forEach(f: (node: N, index: number, halt: () => void) => void, state?: TraverseState): void; |
@@ -1,5 +0,5 @@ | ||
import { Token } from '@rimbu/base'; | ||
import { RMap } from '@rimbu/collection-types'; | ||
import { ArrayNonEmpty, OptLazy, OptLazyOr, RelatedTo, SuperOf } from '@rimbu/common'; | ||
import { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { Token } from '@rimbu/base'; | ||
import type { RMap } from '@rimbu/collection-types'; | ||
import type { ArrayNonEmpty, OptLazy, OptLazyOr, RelatedTo, SuperOf } from '@rimbu/common'; | ||
import type { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { GraphConnect, GraphConnectNonEmpty, WithGraphValues } from '../gen-graph-custom'; | ||
@@ -6,0 +6,0 @@ import type { VariantGraphBase } from '../graph/graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { ValuedGraphElement } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { ValuedGraphBase } from './valued-graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { OptLazy, RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { OptLazy, RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { WithGraphValues } from '../gen-graph-custom'; | ||
@@ -4,0 +4,0 @@ import type { VariantGraphBase } from '../graph/graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { ValuedGraphElement } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { VariantValuedGraphBase } from './valued-graph-custom'; |
{ | ||
"name": "@rimbu/graph", | ||
"version": "0.5.11", | ||
"version": "0.6.0", | ||
"description": "Immutable Graph data structures for TypeScript", | ||
@@ -48,2 +48,3 @@ "keywords": [ | ||
"build": "yarn clean && yarn bundle", | ||
"build:deno": "rimraf deno_dist ../../deno_dist/graph && denoify && cp ../../config/mod_ts_template deno_dist/mod.ts && mv deno_dist ../../deno_dist/graph", | ||
"bundle": "yarn bundle:main && yarn bundle:module && yarn bundle:types", | ||
@@ -64,7 +65,7 @@ "bundle:main": "tsc --p tsconfig.main.json", | ||
"dependencies": { | ||
"@rimbu/collection-types": "^0.5.11", | ||
"@rimbu/common": "^0.5.9", | ||
"@rimbu/hashed": "^0.5.11", | ||
"@rimbu/sorted": "^0.5.11", | ||
"@rimbu/stream": "^0.5.11" | ||
"@rimbu/collection-types": "^0.6.0", | ||
"@rimbu/common": "^0.6.0", | ||
"@rimbu/hashed": "^0.6.0", | ||
"@rimbu/sorted": "^0.6.0", | ||
"@rimbu/stream": "^0.6.0" | ||
}, | ||
@@ -74,3 +75,6 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0158eaad0dec4503e92cb308af952869d68faad5" | ||
"denoify": { | ||
"replacer": "../../config/denoify-rimbu-replacer.js" | ||
}, | ||
"gitHead": "dbcaad0cb6b1e31ffa64ca2739b9ddb0fc178ebc" | ||
} |
<p align="center"> | ||
<img src="../../assets/rimbu_logo.svg" /> | ||
<img src="https://github.com/rimbu-org/rimbu/raw/main/assets/rimbu_logo.svg" /> | ||
</p> | ||
@@ -7,2 +7,4 @@ | ||
A Graph is a data structure consisting of nodes that can be connected through edges. Each node has a unique value or identifier. Edges can be directed, in which case we will call it an Arrow Graph, or undirected, in which case we will call it an Edge Graph. Furthermore, edges and arrows can also have values, in which case we call it a Valued Graph. | ||
This package exports the following main types: | ||
@@ -23,2 +25,6 @@ | ||
For complete documentation please visit the _[Rimbu Docs](http://rimbu.org)_. | ||
Or [Try Me Out](https://codesandbox.io/s/rimbu-sandbox-d4tbk?previewwindow=console&view=split&editorsize=65&moduleview=1&module=/src/index.ts) in CodeSandBox. | ||
## Installation | ||
@@ -42,5 +48,3 @@ | ||
{ | ||
// ... | ||
"compilerOptions": { | ||
// ... | ||
"skipLibCheck": true, | ||
@@ -47,0 +51,0 @@ "noStrictGenericChecks": true |
@@ -1,3 +0,3 @@ | ||
import { RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { GraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { HashMap, HashSet } from '@rimbu/hashed'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { SortedMap, SortedSet } from '@rimbu/sorted'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Link } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { ArrowGraphBase } from '../graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -3,0 +3,0 @@ import type { GraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { HashMap, HashSet } from '@rimbu/hashed'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,5 +0,5 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { OmitStrong } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { OmitStrong } from '@rimbu/common'; | ||
import { SortedMap, SortedSet } from '@rimbu/sorted'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -6,0 +6,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../../internal'; | ||
@@ -4,0 +4,0 @@ import type { EdgeGraphBase } from '../graph-custom'; |
@@ -1,4 +0,4 @@ | ||
import { RMap, RSet } from '@rimbu/collection-types'; | ||
import { ArrayNonEmpty, RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { RMap, RSet } from '@rimbu/collection-types'; | ||
import type { ArrayNonEmpty, RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { | ||
@@ -5,0 +5,0 @@ GraphConnect, |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement } from '../common/link'; | ||
@@ -3,0 +3,0 @@ import type { GraphBase } from './graph-custom'; |
import { RimbuError } from '@rimbu/base'; | ||
import { RelatedTo } from '@rimbu/common'; | ||
import type { RelatedTo } from '@rimbu/common'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
@@ -4,0 +4,0 @@ import type { WithGraphValues } from '../../gen-graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { ArrayNonEmpty } from '@rimbu/common'; | ||
import type { ArrayNonEmpty } from '@rimbu/common'; | ||
import { StreamSource } from '@rimbu/stream'; | ||
@@ -19,2 +19,4 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
{ | ||
readonly _empty: WithGraphValues<Tp, UN, any>['normal']; | ||
constructor( | ||
@@ -29,10 +31,6 @@ readonly isDirected: Dir, | ||
>['linkConnectionsContext'] | ||
) {} | ||
) { | ||
this._empty = new GraphEmpty<UN, any, Tp>(isDirected, this as any) as any; | ||
} | ||
readonly _empty: WithGraphValues<Tp, UN, any>['normal'] = new GraphEmpty< | ||
UN, | ||
any, | ||
Tp | ||
>(this.isDirected, this as any) as any; | ||
isNonEmptyInstance( | ||
@@ -39,0 +37,0 @@ source: any |
@@ -1,3 +0,3 @@ | ||
import { RSet } from '@rimbu/collection-types'; | ||
import { ToJSON } from '@rimbu/common'; | ||
import type { RSet } from '@rimbu/collection-types'; | ||
import type { ToJSON } from '@rimbu/common'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
@@ -4,0 +4,0 @@ import type { WithGraphValues } from '../../gen-graph-custom'; |
import { CustomBase } from '@rimbu/collection-types'; | ||
import { RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
import type { RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
@@ -39,3 +39,5 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any { | ||
return this; | ||
} | ||
@@ -42,0 +44,0 @@ asNormal(): any { |
@@ -1,3 +0,8 @@ | ||
import { RelatedTo, ToJSON } from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { RelatedTo, ToJSON } from '@rimbu/common'; | ||
import type { | ||
FastIterable, | ||
Stream, | ||
Streamable, | ||
StreamSource, | ||
} from '@rimbu/stream'; | ||
import type { GraphValues, WithGraphValues } from '../gen-graph-custom'; | ||
@@ -4,0 +9,0 @@ import type { Link } from '../internal'; |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { GraphElement, Link } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { VariantGraphBase } from './graph-custom'; |
@@ -1,2 +0,2 @@ | ||
import { ArrayNonEmpty } from '@rimbu/common'; | ||
import type { ArrayNonEmpty } from '@rimbu/common'; | ||
import { StreamSource } from '@rimbu/stream'; | ||
@@ -22,2 +22,4 @@ import type { WithGraphValues } from '../../gen-graph-custom'; | ||
{ | ||
readonly _empty: any; | ||
constructor( | ||
@@ -32,9 +34,6 @@ readonly isDirected: boolean, | ||
>['linkConnectionsContext'] | ||
) {} | ||
) { | ||
this._empty = new ValuedGraphEmpty<UN, any, Tp>(isDirected, this as any); | ||
} | ||
readonly _empty: any = new ValuedGraphEmpty<UN, any, Tp>( | ||
this.isDirected, | ||
this as any | ||
); | ||
isNonEmptyInstance( | ||
@@ -41,0 +40,0 @@ source: any |
import { Token } from '@rimbu/base'; | ||
import { RMap } from '@rimbu/collection-types'; | ||
import type { RMap } from '@rimbu/collection-types'; | ||
import { OptLazy, OptLazyOr, RelatedTo, ToJSON } from '@rimbu/common'; | ||
@@ -4,0 +4,0 @@ import { Stream, StreamSource } from '@rimbu/stream'; |
@@ -1,2 +0,2 @@ | ||
import { Token } from '@rimbu/base'; | ||
import type { Token } from '@rimbu/base'; | ||
import { CustomBase } from '@rimbu/collection-types'; | ||
@@ -53,3 +53,5 @@ import { | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any { | ||
return this; | ||
} | ||
@@ -56,0 +58,0 @@ asNormal(): any { |
@@ -1,4 +0,4 @@ | ||
import { Token } from '@rimbu/base'; | ||
import { RMap } from '@rimbu/collection-types'; | ||
import { | ||
import type { Token } from '@rimbu/base'; | ||
import type { RMap } from '@rimbu/collection-types'; | ||
import type { | ||
ArrayNonEmpty, | ||
@@ -10,3 +10,3 @@ OptLazy, | ||
} from '@rimbu/common'; | ||
import { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { | ||
@@ -20,2 +20,3 @@ GraphConnect, | ||
import type { VariantValuedGraphBase } from './valued-graph-custom'; | ||
export interface ValuedGraphBase< | ||
@@ -117,6 +118,9 @@ N, | ||
export namespace ValuedGraphBase { | ||
type NonEmptyBase<N, V, Tp extends ValuedGraphBase.Types> = | ||
VariantValuedGraphBase.NonEmpty<N, V, Tp> & | ||
GraphConnectNonEmpty<N, V, Tp> & | ||
ValuedGraphBase<N, V, Tp>; | ||
type NonEmptyBase< | ||
N, | ||
V, | ||
Tp extends ValuedGraphBase.Types | ||
> = VariantValuedGraphBase.NonEmpty<N, V, Tp> & | ||
GraphConnectNonEmpty<N, V, Tp> & | ||
ValuedGraphBase<N, V, Tp>; | ||
@@ -123,0 +127,0 @@ export interface NonEmpty< |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { ValuedGraphElement } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { ValuedGraphBase } from './valued-graph-custom'; |
@@ -1,3 +0,3 @@ | ||
import { OptLazy, RelatedTo } from '@rimbu/common'; | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { OptLazy, RelatedTo } from '@rimbu/common'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { WithGraphValues } from '../gen-graph-custom'; | ||
@@ -46,4 +46,7 @@ import type { VariantGraphBase } from '../graph/graph-custom'; | ||
export namespace VariantValuedGraphBase { | ||
type NonEmptyBase<N, V, Tp extends VariantValuedGraphBase.Types> = | ||
VariantGraphBase.NonEmpty<N, V, Tp> & VariantValuedGraphBase<N, V, Tp>; | ||
type NonEmptyBase< | ||
N, | ||
V, | ||
Tp extends VariantValuedGraphBase.Types | ||
> = VariantGraphBase.NonEmpty<N, V, Tp> & VariantValuedGraphBase<N, V, Tp>; | ||
@@ -50,0 +53,0 @@ export interface NonEmpty< |
@@ -1,2 +0,2 @@ | ||
import { Stream, Streamable } from '@rimbu/stream'; | ||
import type { Stream, Streamable } from '@rimbu/stream'; | ||
import type { ValuedGraphElement } from '../internal'; | ||
@@ -3,0 +3,0 @@ import type { VariantValuedGraphBase } from './valued-graph-custom'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
543621
10338
80
+ Added@rimbu/base@0.6.7(transitive)
+ Added@rimbu/collection-types@0.6.10.7.5(transitive)
+ Added@rimbu/common@0.6.10.7.5(transitive)
+ Added@rimbu/hashed@0.6.8(transitive)
+ Added@rimbu/list@0.7.5(transitive)
+ Added@rimbu/sorted@0.6.5(transitive)
+ Added@rimbu/stream@0.6.10.7.5(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@rimbu/base@0.5.9(transitive)
- Removed@rimbu/collection-types@0.5.11(transitive)
- Removed@rimbu/common@0.5.9(transitive)
- Removed@rimbu/hashed@0.5.11(transitive)
- Removed@rimbu/list@0.5.11(transitive)
- Removed@rimbu/sorted@0.5.11(transitive)
- Removed@rimbu/stream@0.5.11(transitive)
Updated@rimbu/common@^0.6.0
Updated@rimbu/hashed@^0.6.0
Updated@rimbu/sorted@^0.6.0
Updated@rimbu/stream@^0.6.0