Socket
Socket
Sign inDemoInstall

@rimbu/graph

Package Overview
Dependencies
8
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.10 to 0.9.11

dist/main/custom/common/index.js

2

dist/main/custom/common/implementation/base.js

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var stream_1 = require("@rimbu/stream");
var map_custom_1 = require("@rimbu/collection-types/map-custom");
var stream_1 = require("@rimbu/stream");
var GraphEmptyBase = /** @class */ (function (_super) {

@@ -9,0 +9,0 @@ (0, tslib_1.__extends)(GraphEmptyBase, _super);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./non-valued/link"), exports);
(0, tslib_1.__exportStar)(require("./valued/valued-link"), exports);
(0, tslib_1.__exportStar)(require("./common/interface/variant-graph-base"), exports);
(0, tslib_1.__exportStar)(require("./common/interface/graph-base"), exports);
// pure interfaces
(0, tslib_1.__exportStar)(require("./non-valued/interface/arrow-graph-base"), exports);

@@ -18,11 +15,13 @@ (0, tslib_1.__exportStar)(require("./non-valued/interface/edge-graph-base"), exports);

(0, tslib_1.__exportStar)(require("./valued/interface/edge/edge-valued-graph-creators"), exports);
(0, tslib_1.__exportStar)(require("./common/implementation/base"), exports);
// pure classes and files
(0, tslib_1.__exportStar)(require("./non-valued/implementation/non-empty"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/non-empty"), exports);
(0, tslib_1.__exportStar)(require("./common"), exports);
// circular dependencies
(0, tslib_1.__exportStar)(require("./non-valued/implementation/empty"), exports);
(0, tslib_1.__exportStar)(require("./non-valued/implementation/builder"), exports);
(0, tslib_1.__exportStar)(require("./non-valued/implementation/empty"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/empty"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/builder"), exports);
(0, tslib_1.__exportStar)(require("./non-valued/implementation/context"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/non-empty"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/builder"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/empty"), exports);
(0, tslib_1.__exportStar)(require("./valued/implementation/context"), exports);
//# sourceMappingURL=index.js.map

@@ -6,4 +6,4 @@ "use strict";

var base_1 = require("@rimbu/base");
var custom_1 = require("@rimbu/graph/custom");
var stream_1 = require("@rimbu/stream");
var common_1 = require("../../common");
var GraphBuilder = /** @class */ (function () {

@@ -143,3 +143,3 @@ function GraphBuilder(isDirected, context, source) {

this.addGraphElement = function (element) {
if (custom_1.GraphElement.isLink(element)) {
if (common_1.GraphElement.isLink(element)) {
return _this.connectInternal(element[0], element[1]);

@@ -146,0 +146,0 @@ }

@@ -5,4 +5,4 @@ "use strict";

var common_1 = require("@rimbu/common");
var custom_1 = require("@rimbu/graph/custom");
var custom_2 = require("@rimbu/stream/custom");
var custom_1 = require("@rimbu/stream/custom");
var custom_2 = require("@rimbu/graph/custom");
var GraphContext = /** @class */ (function () {

@@ -28,3 +28,3 @@ function GraphContext(isDirected, typeTag, linkMapContext, linkConnectionsContext) {

var source = sources[i];
if ((0, custom_2.isEmptyStreamSourceInstance)(source))
if ((0, custom_1.isEmptyStreamSourceInstance)(source))
continue;

@@ -51,3 +51,3 @@ if (builder.isEmpty &&

this.builder = function () {
return new custom_1.GraphBuilder(_this.isDirected, _this);
return new custom_2.GraphBuilder(_this.isDirected, _this);
};

@@ -62,12 +62,12 @@ this.reducer = function (source) {

};
this._empty = new custom_1.GraphEmpty(isDirected, this);
this._empty = new custom_2.GraphEmpty(isDirected, this);
}
GraphContext.prototype.isNonEmptyInstance = function (source) {
return source instanceof custom_1.GraphNonEmpty;
return source instanceof custom_2.GraphNonEmpty;
};
GraphContext.prototype.createBuilder = function (source) {
return new custom_1.GraphBuilder(this.isDirected, this, source);
return new custom_2.GraphBuilder(this.isDirected, this, source);
};
GraphContext.prototype.createNonEmpty = function (linkMap, connectionSize) {
return new custom_1.GraphNonEmpty(this.isDirected, this, linkMap, connectionSize);
return new custom_2.GraphNonEmpty(this.isDirected, this, linkMap, connectionSize);
};

@@ -74,0 +74,0 @@ return GraphContext;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var custom_1 = require("@rimbu/graph/custom");
var stream_1 = require("@rimbu/stream");
var common_1 = require("../../common");
var GraphEmpty = /** @class */ (function (_super) {

@@ -67,4 +67,4 @@ (0, tslib_1.__extends)(GraphEmpty, _super);

return GraphEmpty;
}(custom_1.GraphEmptyBase));
}(common_1.GraphEmptyBase));
exports.GraphEmpty = GraphEmpty;
//# sourceMappingURL=empty.js.map

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var stream_1 = require("@rimbu/stream");
var map_custom_1 = require("@rimbu/collection-types/map-custom");
var stream_1 = require("@rimbu/stream");
var GraphNonEmpty = /** @class */ (function (_super) {

@@ -9,0 +9,0 @@ (0, tslib_1.__extends)(GraphNonEmpty, _super);

@@ -7,4 +7,4 @@ "use strict";

var common_1 = require("@rimbu/common");
var custom_1 = require("@rimbu/graph/custom");
var stream_1 = require("@rimbu/stream");
var common_2 = require("../../common");
var ValuedGraphBuilder = /** @class */ (function () {

@@ -137,3 +137,3 @@ function ValuedGraphBuilder(isDirected, context, source) {

this.addGraphElement = function (element) {
if (custom_1.ValuedGraphElement.isLink(element)) {
if (common_2.ValuedGraphElement.isLink(element)) {
return _this.connectInternal(element[0], element[1], element[2]);

@@ -140,0 +140,0 @@ }

@@ -5,4 +5,4 @@ "use strict";

var common_1 = require("@rimbu/common");
var custom_1 = require("@rimbu/graph/custom");
var custom_2 = require("@rimbu/stream/custom");
var custom_1 = require("@rimbu/stream/custom");
var custom_2 = require("@rimbu/graph/custom");
var ValuedGraphContext = /** @class */ (function () {

@@ -28,3 +28,3 @@ function ValuedGraphContext(isDirected, typeTag, linkMapContext, linkConnectionsContext) {

var source = sources[i];
if ((0, custom_2.isEmptyStreamSourceInstance)(source))
if ((0, custom_1.isEmptyStreamSourceInstance)(source))
continue;

@@ -51,3 +51,3 @@ if (builder.isEmpty &&

this.builder = function () {
return new custom_1.ValuedGraphBuilder(_this.isDirected, _this);
return new custom_2.ValuedGraphBuilder(_this.isDirected, _this);
};

@@ -62,12 +62,12 @@ this.reducer = function (source) {

};
this._empty = new custom_1.ValuedGraphEmpty(isDirected, this);
this._empty = new custom_2.ValuedGraphEmpty(isDirected, this);
}
ValuedGraphContext.prototype.isNonEmptyInstance = function (source) {
return source instanceof custom_1.ValuedGraphNonEmpty;
return source instanceof custom_2.ValuedGraphNonEmpty;
};
ValuedGraphContext.prototype.createBuilder = function (source) {
return new custom_1.ValuedGraphBuilder(this.isDirected, this, source);
return new custom_2.ValuedGraphBuilder(this.isDirected, this, source);
};
ValuedGraphContext.prototype.createNonEmpty = function (linkMap, connectionSize) {
return new custom_1.ValuedGraphNonEmpty(this.isDirected, this, linkMap, connectionSize);
return new custom_2.ValuedGraphNonEmpty(this.isDirected, this, linkMap, connectionSize);
};

@@ -74,0 +74,0 @@ return ValuedGraphContext;

@@ -7,4 +7,4 @@ "use strict";

var common_1 = require("@rimbu/common");
var custom_1 = require("@rimbu/graph/custom");
var stream_1 = require("@rimbu/stream");
var common_2 = require("../../common");
var ValuedGraphEmpty = /** @class */ (function (_super) {

@@ -83,4 +83,4 @@ (0, tslib_1.__extends)(ValuedGraphEmpty, _super);

return ValuedGraphEmpty;
}(custom_1.GraphEmptyBase));
}(common_2.GraphEmptyBase));
exports.ValuedGraphEmpty = ValuedGraphEmpty;
//# sourceMappingURL=empty.js.map

@@ -12,4 +12,7 @@ "use strict";

var tslib_1 = require("tslib");
// pure interfaces
(0, tslib_1.__exportStar)(require("./common/interface/variant-graph"), exports);
(0, tslib_1.__exportStar)(require("./common/interface/graph"), exports);
// pure classes and files
// circular dependencies
(0, tslib_1.__exportStar)(require("./non-valued/interface/arrow/arrow-graph"), exports);

@@ -16,0 +19,0 @@ (0, tslib_1.__exportStar)(require("./non-valued/interface/arrow/arrow-graph-hashed"), exports);

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var hashed_1 = require("@rimbu/hashed");
var custom_1 = require("@rimbu/graph/custom");
var hashed_1 = require("@rimbu/hashed");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var sorted_1 = require("@rimbu/sorted");
var custom_1 = require("@rimbu/graph/custom");
var sorted_1 = require("@rimbu/sorted");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var hashed_1 = require("@rimbu/hashed");
var custom_1 = require("@rimbu/graph/custom");
var hashed_1 = require("@rimbu/hashed");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var sorted_1 = require("@rimbu/sorted");
var custom_1 = require("@rimbu/graph/custom");
var sorted_1 = require("@rimbu/sorted");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var hashed_1 = require("@rimbu/hashed");
var custom_1 = require("@rimbu/graph/custom");
var hashed_1 = require("@rimbu/hashed");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var sorted_1 = require("@rimbu/sorted");
var custom_1 = require("@rimbu/graph/custom");
var sorted_1 = require("@rimbu/sorted");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var hashed_1 = require("@rimbu/hashed");
var custom_1 = require("@rimbu/graph/custom");
var hashed_1 = require("@rimbu/hashed");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -5,4 +5,4 @@ "use strict";

var tslib_1 = require("tslib");
var sorted_1 = require("@rimbu/sorted");
var custom_1 = require("@rimbu/graph/custom");
var sorted_1 = require("@rimbu/sorted");
function createContext(options) {

@@ -9,0 +9,0 @@ var _a, _b;

@@ -0,3 +1,3 @@

import { Stream } from '@rimbu/stream';
import { EmptyBase } from '@rimbu/collection-types/map-custom';
import { Stream } from '@rimbu/stream';
export class GraphEmptyBase extends EmptyBase {

@@ -4,0 +4,0 @@ get nodeSize() {

@@ -1,5 +0,2 @@

export * from './non-valued/link';
export * from './valued/valued-link';
export * from './common/interface/variant-graph-base';
export * from './common/interface/graph-base';
// pure interfaces
export * from './non-valued/interface/arrow-graph-base';

@@ -15,11 +12,13 @@ export * from './non-valued/interface/edge-graph-base';

export * from './valued/interface/edge/edge-valued-graph-creators';
export * from './common/implementation/base';
// pure classes and files
export * from './non-valued/implementation/non-empty';
export * from './valued/implementation/non-empty';
export * from './common';
// circular dependencies
export * from './non-valued/implementation/empty';
export * from './non-valued/implementation/builder';
export * from './non-valued/implementation/empty';
export * from './valued/implementation/empty';
export * from './valued/implementation/builder';
export * from './non-valued/implementation/context';
export * from './valued/implementation/non-empty';
export * from './valued/implementation/builder';
export * from './valued/implementation/empty';
export * from './valued/implementation/context';
//# sourceMappingURL=index.js.map
import { RimbuError } from '@rimbu/base';
import { GraphElement, } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import { GraphElement } from '../../common';
export class GraphBuilder {

@@ -5,0 +5,0 @@ constructor(isDirected, context, source) {

import { Reducer } from '@rimbu/common';
import { GraphBuilder, GraphEmpty, GraphNonEmpty, } from '@rimbu/graph/custom';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
import { GraphEmpty, GraphNonEmpty, GraphBuilder } from '@rimbu/graph/custom';
export class GraphContext {

@@ -5,0 +5,0 @@ constructor(isDirected, typeTag, linkMapContext, linkConnectionsContext) {

@@ -1,3 +0,3 @@

import { GraphEmptyBase, } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import { GraphEmptyBase } from '../../common';
export class GraphEmpty extends GraphEmptyBase {

@@ -4,0 +4,0 @@ constructor(isDirected, context) {

@@ -0,3 +1,3 @@

import { Stream } from '@rimbu/stream';
import { NonEmptyBase } from '@rimbu/collection-types/map-custom';
import { Stream } from '@rimbu/stream';
export class GraphNonEmpty extends NonEmptyBase {

@@ -4,0 +4,0 @@ constructor(isDirected, context, linkMap, connectionSize) {

import { RimbuError } from '@rimbu/base';
import { OptLazy, OptLazyOr } from '@rimbu/common';
import { ValuedGraphElement, } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import { ValuedGraphElement } from '../../common';
export class ValuedGraphBuilder {

@@ -6,0 +6,0 @@ constructor(isDirected, context, source) {

import { Reducer } from '@rimbu/common';
import { ValuedGraphBuilder, ValuedGraphEmpty, ValuedGraphNonEmpty, } from '@rimbu/graph/custom';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
import { ValuedGraphEmpty, ValuedGraphNonEmpty, ValuedGraphBuilder, } from '@rimbu/graph/custom';
export class ValuedGraphContext {

@@ -5,0 +5,0 @@ constructor(isDirected, typeTag, linkMapContext, linkConnectionsContext) {

import { Token } from '@rimbu/base';
import { OptLazy, OptLazyOr } from '@rimbu/common';
import { GraphEmptyBase, } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import { GraphEmptyBase } from '../../common';
export class ValuedGraphEmpty extends GraphEmptyBase {

@@ -6,0 +6,0 @@ constructor(isDirected, context) {

@@ -8,4 +8,7 @@ /**

*/
// pure interfaces
export * from './common/interface/variant-graph';
export * from './common/interface/graph';
// pure classes and files
// circular dependencies
export * from './non-valued/interface/arrow/arrow-graph';

@@ -12,0 +15,0 @@ export * from './non-valued/interface/arrow/arrow-graph-hashed';

@@ -1,3 +0,3 @@

import { GraphContext, } from '@rimbu/graph/custom';
import { HashMap, HashSet } from '@rimbu/hashed';
import { GraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { GraphContext, } from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import { GraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { GraphContext, } from '@rimbu/graph/custom';
import { HashMap, HashSet } from '@rimbu/hashed';
import { GraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { GraphContext, } from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import { GraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { HashMap } from '@rimbu/hashed';
import { ValuedGraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { SortedMap } from '@rimbu/sorted';
import { ValuedGraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,2 +0,2 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { ValuedGraphContext } from '@rimbu/graph/custom';
export const ArrowValuedGraph = {

@@ -3,0 +3,0 @@ /**

@@ -1,3 +0,3 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { HashMap } from '@rimbu/hashed';
import { ValuedGraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,3 +0,3 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { SortedMap } from '@rimbu/sorted';
import { ValuedGraphContext } from '@rimbu/graph/custom';
function createContext(options) {

@@ -4,0 +4,0 @@ var _a, _b;

@@ -1,2 +0,2 @@

import { ValuedGraphContext, } from '@rimbu/graph/custom';
import { ValuedGraphContext } from '@rimbu/graph/custom';
export const EdgeValuedGraph = {

@@ -3,0 +3,0 @@ /**

@@ -0,4 +1,4 @@

import { Stream, StreamSource } from '@rimbu/stream';
import { EmptyBase } from '@rimbu/collection-types/map-custom';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { VariantGraphBase } from '..';
export interface GraphValues<N = unknown, V = unknown> {

@@ -5,0 +5,0 @@ readonly _N: N;

import type { RMap, RSet } from '@rimbu/collection-types';
import type { ArrayNonEmpty, Reducer, RelatedTo } from '@rimbu/common';
import type { GraphConnect, GraphConnectNonEmpty, GraphElement, Link, VariantGraphBase, WithGraphValues } from '@rimbu/graph/custom';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
import type { GraphConnect, GraphConnectNonEmpty, VariantGraphBase, WithGraphValues } from '..';
import type { GraphElement, Link } from '../../common';
export interface GraphBase<N, Tp extends GraphBase.Types = GraphBase.Types> extends VariantGraphBase<N, unknown, Tp>, GraphConnect<N, unknown, Tp> {

@@ -6,0 +7,0 @@ /**

import type { RelatedTo, ToJSON } from '@rimbu/common';
import type { GraphValues, Link, WithGraphValues } from '@rimbu/graph/custom';
import type { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream';
import type { GraphValues, WithGraphValues } from '..';
import type { Link } from '..';
export interface VariantGraphBase<N, V, Tp extends VariantGraphBase.Types = VariantGraphBase.Types> extends FastIterable<[N] | WithGraphValues<Tp, N, V>['link']> {

@@ -5,0 +6,0 @@ /**

@@ -1,5 +0,1 @@

export * from './non-valued/link';
export * from './valued/valued-link';
export * from './common/interface/variant-graph-base';
export * from './common/interface/graph-base';
export * from './non-valued/interface/arrow-graph-base';

@@ -15,10 +11,10 @@ export * from './non-valued/interface/edge-graph-base';

export * from './valued/interface/edge/edge-valued-graph-creators';
export * from './common/implementation/base';
export * from './non-valued/implementation/non-empty';
export * from './valued/implementation/non-empty';
export * from './common';
export * from './non-valued/implementation/empty';
export * from './non-valued/implementation/builder';
export * from './non-valued/implementation/empty';
export * from './valued/implementation/empty';
export * from './valued/implementation/builder';
export * from './non-valued/implementation/context';
export * from './valued/implementation/non-empty';
export * from './valued/implementation/builder';
export * from './valued/implementation/empty';
export * from './valued/implementation/context';

@@ -0,4 +1,6 @@

import { StreamSource } from '@rimbu/stream';
import type { RelatedTo } from '@rimbu/common';
import { GraphElement, GraphTypesContextImpl, Link, WithGraphValues } from '@rimbu/graph/custom';
import { StreamSource } from '@rimbu/stream';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type { Link, WithGraphValues } from '../../common';
import { GraphElement } from '../../common';
export declare class GraphBuilder<N, Tp extends GraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, any> = WithGraphValues<Tp, N, any>> {

@@ -5,0 +7,0 @@ readonly isDirected: boolean;

@@ -1,3 +0,3 @@

import { GraphBase, GraphElement, WithGraphValues } from '@rimbu/graph/custom';
import type { StreamSource } from '@rimbu/stream';
import type { GraphBase, GraphElement, WithGraphValues } from '../../common';
export interface GraphTypesContextImpl extends GraphBase.Types {

@@ -4,0 +4,0 @@ readonly context: GraphContext<this['_N'], string, boolean>;

import type { ToJSON } from '@rimbu/common';
import { GraphBase, GraphEmptyBase, GraphTypesContextImpl, WithGraphValues } from '@rimbu/graph/custom';
import { StreamSource } from '@rimbu/stream';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type { GraphBase, WithGraphValues } from '../../common';
import { GraphEmptyBase } from '../../common';
export declare class GraphEmpty<N, V, Tp extends GraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, V> = WithGraphValues<Tp, N, V>> extends GraphEmptyBase implements GraphBase<N, Tp> {

@@ -5,0 +7,0 @@ readonly isDirected: boolean;

@@ -1,5 +0,6 @@

import { NonEmptyBase } from '@rimbu/collection-types/map-custom';
import type { RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import type { GraphBase, GraphElement, GraphTypesContextImpl, Link, WithGraphValues } from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import { NonEmptyBase } from '@rimbu/collection-types/map-custom';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type { GraphBase, GraphElement, Link, WithGraphValues } from '../../common';
export declare class GraphNonEmpty<N, Tp extends GraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, any> = WithGraphValues<Tp, N, any>> extends NonEmptyBase<GraphElement<N>> implements GraphBase.NonEmpty<N, Tp> {

@@ -6,0 +7,0 @@ readonly isDirected: boolean;

import type { RelatedTo } from '@rimbu/common';
import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '../../common';
export interface ArrowGraphBase<N, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase<N, Tp> {

@@ -5,0 +5,0 @@ /**

@@ -1,5 +0,5 @@

import type { ArrowGraphHashed, ArrowGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '@rimbu/graph/custom';
import type { HashMap, HashSet } from '@rimbu/hashed';
import type { SortedMap, SortedSet } from '@rimbu/sorted';
import type { GraphBase } from '../../common';
import type { ArrowGraphHashed, ArrowGraphSorted } from '@rimbu/graph';
export interface ArrowGraphHashedCreators extends GraphBase.Factory<ArrowGraphHashed.Types> {

@@ -6,0 +6,0 @@ /**

@@ -1,3 +0,3 @@

import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '../../common';
export interface EdgeGraphBase<N, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase<N, Tp> {

@@ -4,0 +4,0 @@ /**

@@ -1,5 +0,5 @@

import type { EdgeGraphHashed, EdgeGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '@rimbu/graph/custom';
import type { HashMap, HashSet } from '@rimbu/hashed';
import type { SortedMap, SortedSet } from '@rimbu/sorted';
import type { EdgeGraphHashed, EdgeGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '../../common';
export interface EdgeGraphHashedCreators extends GraphBase.Factory<EdgeGraphHashed.Types> {

@@ -6,0 +6,0 @@ /**

import { Token } from '@rimbu/base';
import { OptLazy, OptLazyOr, RelatedTo } from '@rimbu/common';
import { Link, ValuedGraphElement, ValuedGraphTypesContextImpl, WithGraphValues } from '@rimbu/graph/custom';
import { StreamSource } from '@rimbu/stream';
import type { ValuedGraphTypesContextImpl } from '@rimbu/graph/custom';
import type { Link, WithGraphValues } from '../../common';
import { ValuedGraphElement } from '../../common';
export declare class ValuedGraphBuilder<N, V, Tp extends ValuedGraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, V> = WithGraphValues<Tp, N, V>> {

@@ -6,0 +8,0 @@ readonly isDirected: boolean;

@@ -1,3 +0,4 @@

import { ValuedGraphBase, ValuedGraphElement, WithGraphValues } from '@rimbu/graph/custom';
import type { StreamSource } from '@rimbu/stream';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement, WithGraphValues } from '../../common';
export interface ValuedGraphTypesContextImpl extends ValuedGraphBase.Types {

@@ -4,0 +5,0 @@ readonly context: ValuedGraphContext<this['_N'], string>;

import { Token } from '@rimbu/base';
import { OptLazy, OptLazyOr, RelatedTo, ToJSON } from '@rimbu/common';
import { GraphEmptyBase, ValuedGraphBase, ValuedGraphTypesContextImpl, WithGraphValues } from '@rimbu/graph/custom';
import { StreamSource } from '@rimbu/stream';
import type { ValuedGraphBase, ValuedGraphTypesContextImpl } from '@rimbu/graph/custom';
import type { WithGraphValues } from '../../common';
import { GraphEmptyBase } from '../../common';
export declare class ValuedGraphEmpty<N, V, Tp extends ValuedGraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, V> = WithGraphValues<Tp, N, V>> extends GraphEmptyBase implements ValuedGraphBase<N, V, Tp> {

@@ -6,0 +8,0 @@ readonly isDirected: boolean;

import type { Token } from '@rimbu/base';
import { NonEmptyBase } from '@rimbu/collection-types/map-custom';
import { OptLazy, OptLazyOr, RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import type { Link, ValuedGraphBase, ValuedGraphElement, ValuedGraphTypesContextImpl, ValuedLink, WithGraphValues } from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { ValuedGraphBase, ValuedGraphTypesContextImpl } from '@rimbu/graph/custom';
import type { Link, ValuedGraphElement, ValuedLink, WithGraphValues } from '../../common';
export declare class ValuedGraphNonEmpty<N, V, Tp extends ValuedGraphTypesContextImpl, TpG extends WithGraphValues<Tp, N, V> = WithGraphValues<Tp, N, V>> extends NonEmptyBase<ValuedGraphElement<N, V>> implements ValuedGraphBase.NonEmpty<N, V, Tp> {

@@ -7,0 +8,0 @@ readonly isDirected: boolean;

import type { RelatedTo } from '@rimbu/common';
import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement } from '../../../common';
export interface ArrowValuedGraphBase<N, V, Tp extends ArrowValuedGraphBase.Types = ArrowValuedGraphBase.Types> extends ValuedGraphBase<N, V, Tp> {

@@ -5,0 +6,0 @@ /**

@@ -0,5 +1,5 @@

import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
import type { ArrowValuedGraphHashed, ArrowValuedGraphSorted } from '@rimbu/graph';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
export interface ArrowValuedGraphHashedCreators extends ValuedGraphBase.Factory<ArrowValuedGraphHashed.Types> {

@@ -6,0 +6,0 @@ /**

@@ -1,3 +0,4 @@

import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement } from '../../../common';
export interface EdgeValuedGraphBase<N, V, Tp extends EdgeValuedGraphBase.Types = EdgeValuedGraphBase.Types> extends ValuedGraphBase<N, V, Tp> {

@@ -4,0 +5,0 @@ /**

@@ -0,5 +1,5 @@

import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
import type { EdgeValuedGraphHashed, EdgeValuedGraphSorted } from '@rimbu/graph';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
export interface EdgeValuedGraphHashedCreators extends ValuedGraphBase.Factory<EdgeValuedGraphHashed.Types> {

@@ -6,0 +6,0 @@ /**

import type { Token } from '@rimbu/base';
import type { RMap } from '@rimbu/collection-types';
import type { ArrayNonEmpty, OptLazy, OptLazyOr, Reducer, RelatedTo } from '@rimbu/common';
import type { GraphConnect, GraphConnectNonEmpty, Link, ValuedGraphElement, VariantGraphBase, VariantValuedGraphBase, WithGraphValues } from '@rimbu/graph/custom';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
import type { VariantValuedGraphBase } from '@rimbu/graph/custom';
import type { GraphConnect, GraphConnectNonEmpty, Link, ValuedGraphElement, VariantGraphBase, WithGraphValues } from '../../../common';
export interface ValuedGraphBase<N, V, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> extends VariantValuedGraphBase<N, V, Tp>, GraphConnect<N, V, Tp> {

@@ -7,0 +8,0 @@ /**

import type { VariantMap } from '@rimbu/collection-types';
import type { OptLazy, RelatedTo } from '@rimbu/common';
import type { ValuedGraphElement, ValuedLink, VariantGraphBase, WithGraphValues } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement, ValuedLink, VariantGraphBase, WithGraphValues } from '../../../common';
export interface VariantValuedGraphBase<N, V, Tp extends VariantValuedGraphBase.Types = VariantValuedGraphBase.Types> extends VariantGraphBase<N, V, Tp> {

@@ -6,0 +6,0 @@ /**

@@ -0,3 +1,3 @@

import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
/**

@@ -4,0 +4,0 @@ * An type-invariant immutable graph.

import type { VariantMap, VariantSet } from '@rimbu/collection-types';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphElement, Link, VariantGraphBase } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
/**

@@ -5,0 +5,0 @@ * An type-variant immutable graph.

@@ -1,4 +0,5 @@

import { ArrowGraphBase, ArrowGraphHashedCreators, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap, HashSet } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ArrowGraphHashedCreators, GraphElement } from '@rimbu/graph/custom';
import { ArrowGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,4 +0,5 @@

import { ArrowGraphBase, ArrowGraphSortedCreators, GraphElement } from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ArrowGraphSortedCreators, GraphElement } from '@rimbu/graph/custom';
import { ArrowGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued arrow (directed) graph.

import type { RMap, RSet } from '@rimbu/collection-types';
import { ArrowGraphBase, Link } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { Link } from '@rimbu/graph/custom';
import { ArrowGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable arrow (directed) graph.

@@ -1,4 +0,5 @@

import { EdgeGraphBase, GraphElement, EdgeGraphHashedCreators } from '@rimbu/graph/custom';
import { HashMap, HashSet } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphElement, EdgeGraphHashedCreators } from '@rimbu/graph/custom';
import { EdgeGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -1,4 +0,5 @@

import { EdgeGraphSortedCreators, EdgeGraphBase, GraphElement } from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type { EdgeGraphSortedCreators, GraphElement } from '@rimbu/graph/custom';
import { EdgeGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued edge (undirected) graph.

import type { RMap, RSet } from '@rimbu/collection-types';
import { EdgeGraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphElement } from '@rimbu/graph/custom';
import { EdgeGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable edge (undirected) graph.

@@ -1,4 +0,4 @@

import type { VariantGraphBase } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import type { LinkType } from './traverse-base';
import type { VariantGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +5,0 @@ * Returns a stream of connections that can be reached in the given `graph`

@@ -0,3 +1,3 @@

import { Stream } from '@rimbu/stream';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import { Stream } from '@rimbu/stream';
import type { LinkType } from './traverse-base';

@@ -4,0 +4,0 @@ /**

@@ -1,4 +0,5 @@

import { ArrowValuedGraphBase, ArrowValuedGraphHashedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ArrowValuedGraphHashedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import { ArrowValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,4 +0,5 @@

import { ArrowValuedGraphBase, ArrowValuedGraphSortedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import { SortedMap } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ArrowValuedGraphSortedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import { ArrowValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued arrow (directed) graph.

import type { RMap } from '@rimbu/collection-types';
import { ArrowValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement } from '@rimbu/graph/custom';
import { ArrowValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,4 +0,5 @@

import { EdgeValuedGraphBase, EdgeValuedGraphHashedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import type { EdgeValuedGraphHashedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import { EdgeValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -1,4 +0,5 @@

import { EdgeValuedGraphBase, EdgeValuedGrapSortedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import { SortedMap } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type { EdgeValuedGrapSortedCreators, ValuedGraphElement } from '@rimbu/graph/custom';
import { EdgeValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued edge (undirected) graph.

import type { RMap } from '@rimbu/collection-types';
import { EdgeValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement } from '@rimbu/graph/custom';
import { EdgeValuedGraphBase } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -0,3 +1,3 @@

import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
/**

@@ -4,0 +4,0 @@ * An type-invariant immutable valued graph.

@@ -0,3 +1,3 @@

import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement, VariantValuedGraphBase } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
/**

@@ -4,0 +4,0 @@ * An type-variant immutable valued graph.

{
"name": "@rimbu/graph",
"version": "0.9.10",
"version": "0.9.11",
"description": "Immutable Graph data structures for TypeScript",

@@ -55,2 +55,3 @@ "keywords": [

"clean": "rimraf dist",
"circular": "npx -y madge --ts-config tsconfig.json --circular --extensions ts src/main/index.ts",
"extract-api": "yarn extract-api:main && yarn extract-api:custom",

@@ -83,3 +84,10 @@ "extract-api:custom": "api-extractor run --local --verbose --config config/api-extractor.custom.json",

},
"gitHead": "9da020a47f9b1cf3c8c2ef343655942f38fc5cfe"
"madge": {
"detectiveOptions": {
"ts": {
"skipTypeImports": true
}
}
},
"gitHead": "5819ced859cbd316fc723364aaf0ed9a881cfa85"
}

@@ -0,5 +1,6 @@

import { Stream, StreamSource } from '@rimbu/stream';
import { EmptyBase } from '@rimbu/collection-types/map-custom';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { VariantGraphBase } from '..';
export interface GraphValues<N = unknown, V = unknown> {

@@ -6,0 +7,0 @@ readonly _N: N;

import type { RMap, RSet } from '@rimbu/collection-types';
import type { ArrayNonEmpty, Reducer, RelatedTo } from '@rimbu/common';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
import type {
GraphConnect,
GraphConnectNonEmpty,
GraphElement,
Link,
VariantGraphBase,
WithGraphValues,
} from '@rimbu/graph/custom';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
} from '..';
import type { GraphElement, Link } from '../../common';

@@ -13,0 +13,0 @@ export interface GraphBase<N, Tp extends GraphBase.Types = GraphBase.Types>

import type { RelatedTo, ToJSON } from '@rimbu/common';
import type { GraphValues, Link, WithGraphValues } from '@rimbu/graph/custom';
import type {

@@ -10,2 +9,5 @@ FastIterable,

import type { GraphValues, WithGraphValues } from '..';
import type { Link } from '..';
export interface VariantGraphBase<

@@ -12,0 +14,0 @@ N,

@@ -1,7 +0,2 @@

export * from './non-valued/link';
export * from './valued/valued-link';
export * from './common/interface/variant-graph-base';
export * from './common/interface/graph-base';
// pure interfaces
export * from './non-valued/interface/arrow-graph-base';

@@ -11,6 +6,4 @@ export * from './non-valued/interface/edge-graph-base';

export * from './non-valued/interface/edge-graph-creators';
export * from './valued/interface/generic/variant-valued-graph-base';
export * from './valued/interface/generic/valued-graph-base';
export * from './valued/interface/arrow/arrow-valued-graph-base';

@@ -21,12 +14,16 @@ export * from './valued/interface/edge/edge-valued-graph-base';

export * from './common/implementation/base';
// pure classes and files
export * from './non-valued/implementation/non-empty';
export * from './valued/implementation/non-empty';
export * from './non-valued/implementation/non-empty';
export * from './common';
// circular dependencies
export * from './non-valued/implementation/empty';
export * from './non-valued/implementation/builder';
export * from './non-valued/implementation/empty';
export * from './non-valued/implementation/context';
export * from './valued/implementation/non-empty';
export * from './valued/implementation/empty';
export * from './valued/implementation/builder';
export * from './valued/implementation/empty';
export * from './non-valued/implementation/context';
export * from './valued/implementation/context';
import { RimbuError } from '@rimbu/base';
import type { RelatedTo } from '@rimbu/common';
import {
GraphElement,
GraphTypesContextImpl,
Link,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { RelatedTo } from '@rimbu/common';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type { Link, WithGraphValues } from '../../common';
import { GraphElement } from '../../common';
export class GraphBuilder<

@@ -12,0 +12,0 @@ N,

import type { ArrayNonEmpty } from '@rimbu/common';
import type { StreamSource } from '@rimbu/stream';
import { Reducer } from '@rimbu/common';
import {
GraphBase,
GraphBuilder,
GraphElement,
GraphEmpty,
GraphNonEmpty,
WithGraphValues,
} from '@rimbu/graph/custom';
import type { StreamSource } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
import type { GraphBase, GraphElement, WithGraphValues } from '../../common';
import { GraphEmpty, GraphNonEmpty, GraphBuilder } from '@rimbu/graph/custom';
export interface GraphTypesContextImpl extends GraphBase.Types {

@@ -15,0 +12,0 @@ readonly context: GraphContext<this['_N'], string, boolean>;

import type { RSet } from '@rimbu/collection-types';
import type { ToJSON } from '@rimbu/common';
import {
GraphBase,
GraphEmptyBase,
GraphTypesContextImpl,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type { GraphBase, WithGraphValues } from '../../common';
import { GraphEmptyBase } from '../../common';
export class GraphEmpty<

@@ -12,0 +12,0 @@ N,

@@ -0,11 +1,13 @@

import type { RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import { NonEmptyBase } from '@rimbu/collection-types/map-custom';
import type { RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import type { GraphTypesContextImpl } from '@rimbu/graph/custom';
import type {
GraphBase,
GraphElement,
GraphTypesContextImpl,
Link,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
} from '../../common';

@@ -12,0 +14,0 @@ export class GraphNonEmpty<

import type { RelatedTo } from '@rimbu/common';
import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '../../common';
export interface ArrowGraphBase<

@@ -6,0 +7,0 @@ N,

@@ -1,6 +0,7 @@

import type { ArrowGraphHashed, ArrowGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '@rimbu/graph/custom';
import type { HashMap, HashSet } from '@rimbu/hashed';
import type { SortedMap, SortedSet } from '@rimbu/sorted';
import type { GraphBase } from '../../common';
import type { ArrowGraphHashed, ArrowGraphSorted } from '@rimbu/graph';
export interface ArrowGraphHashedCreators

@@ -7,0 +8,0 @@ extends GraphBase.Factory<ArrowGraphHashed.Types> {

@@ -1,4 +0,5 @@

import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '../../common';
export interface EdgeGraphBase<

@@ -5,0 +6,0 @@ N,

@@ -1,6 +0,7 @@

import type { EdgeGraphHashed, EdgeGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '@rimbu/graph/custom';
import type { HashMap, HashSet } from '@rimbu/hashed';
import type { SortedMap, SortedSet } from '@rimbu/sorted';
import type { EdgeGraphHashed, EdgeGraphSorted } from '@rimbu/graph';
import type { GraphBase } from '../../common';
export interface EdgeGraphHashedCreators

@@ -7,0 +8,0 @@ extends GraphBase.Factory<EdgeGraphHashed.Types> {

import { RimbuError, Token } from '@rimbu/base';
import { OptLazy, OptLazyOr, RelatedTo } from '@rimbu/common';
import {
Link,
ValuedGraphElement,
ValuedGraphTypesContextImpl,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { ValuedGraphTypesContextImpl } from '@rimbu/graph/custom';
import type { Link, WithGraphValues } from '../../common';
import { ValuedGraphElement } from '../../common';
export class ValuedGraphBuilder<

@@ -12,0 +11,0 @@ N,

import type { ArrayNonEmpty } from '@rimbu/common';
import type { StreamSource } from '@rimbu/stream';
import { Reducer } from '@rimbu/common';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement, WithGraphValues } from '../../common';
import {
ValuedGraphBase,
ValuedGraphBuilder,
ValuedGraphElement,
ValuedGraphEmpty,
ValuedGraphNonEmpty,
WithGraphValues,
ValuedGraphBuilder,
} from '@rimbu/graph/custom';
import type { StreamSource } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';

@@ -14,0 +16,0 @@ export interface ValuedGraphTypesContextImpl extends ValuedGraphBase.Types {

@@ -0,12 +1,15 @@

import type { RMap } from '@rimbu/collection-types';
import { Token } from '@rimbu/base';
import type { RMap } from '@rimbu/collection-types';
import { OptLazy, OptLazyOr, RelatedTo, ToJSON } from '@rimbu/common';
import {
GraphEmptyBase,
import { Stream, StreamSource } from '@rimbu/stream';
import type {
ValuedGraphBase,
ValuedGraphTypesContextImpl,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
import type { WithGraphValues } from '../../common';
import { GraphEmptyBase } from '../../common';
export class ValuedGraphEmpty<

@@ -13,0 +16,0 @@ N,

import type { Token } from '@rimbu/base';
import { NonEmptyBase } from '@rimbu/collection-types/map-custom';

@@ -10,11 +11,14 @@ import {

} from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import type {
ValuedGraphBase,
ValuedGraphTypesContextImpl,
} from '@rimbu/graph/custom';
import type {
Link,
ValuedGraphBase,
ValuedGraphElement,
ValuedGraphTypesContextImpl,
ValuedLink,
WithGraphValues,
} from '@rimbu/graph/custom';
import { Stream, StreamSource } from '@rimbu/stream';
} from '../../common';

@@ -21,0 +25,0 @@ export class ValuedGraphNonEmpty<

import type { RelatedTo } from '@rimbu/common';
import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement } from '../../../common';
export interface ArrowValuedGraphBase<

@@ -6,0 +8,0 @@ N,

@@ -0,1 +1,4 @@

import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
import type {

@@ -6,4 +9,2 @@ ArrowValuedGraphHashed,

import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';

@@ -10,0 +11,0 @@ export interface ArrowValuedGraphHashedCreators

@@ -1,4 +0,6 @@

import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { ValuedGraphElement } from '../../../common';
export interface EdgeValuedGraphBase<

@@ -5,0 +7,0 @@ N,

@@ -0,1 +1,4 @@

import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';
import type {

@@ -6,4 +9,2 @@ EdgeValuedGraphHashed,

import type { ValuedGraphBase } from '@rimbu/graph/custom';
import type { HashMap } from '@rimbu/hashed';
import type { SortedMap } from '@rimbu/sorted';

@@ -10,0 +11,0 @@ export interface EdgeValuedGraphHashedCreators

@@ -10,2 +10,5 @@ import type { Token } from '@rimbu/base';

} from '@rimbu/common';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
import type { VariantValuedGraphBase } from '@rimbu/graph/custom';
import type {

@@ -17,6 +20,4 @@ GraphConnect,

VariantGraphBase,
VariantValuedGraphBase,
WithGraphValues,
} from '@rimbu/graph/custom';
import type { Stream, Streamable, StreamSource } from '@rimbu/stream';
} from '../../../common';

@@ -23,0 +24,0 @@ export interface ValuedGraphBase<

import type { VariantMap } from '@rimbu/collection-types';
import type { OptLazy, RelatedTo } from '@rimbu/common';
import type { Stream, Streamable } from '@rimbu/stream';
import type {

@@ -8,4 +10,3 @@ ValuedGraphElement,

WithGraphValues,
} from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
} from '../../../common';

@@ -12,0 +13,0 @@ export interface VariantValuedGraphBase<

@@ -1,4 +0,5 @@

import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphBase, GraphElement } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable graph.

import type { VariantMap, VariantSet } from '@rimbu/collection-types';
import type { GraphElement, Link, VariantGraphBase } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphElement, Link, VariantGraphBase } from '@rimbu/graph/custom';
/**

@@ -6,0 +7,0 @@ * An type-variant immutable graph.

@@ -9,5 +9,10 @@ /**

// pure interfaces
export * from './common/interface/variant-graph';
export * from './common/interface/graph';
// pure classes and files
// circular dependencies
export * from './non-valued/interface/arrow/arrow-graph';

@@ -14,0 +19,0 @@ export * from './non-valued/interface/arrow/arrow-graph-hashed';

@@ -1,10 +0,12 @@

import {
ArrowGraphBase,
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap, HashSet } from '@rimbu/hashed';
import type {
ArrowGraphHashedCreators,
GraphContext,
GraphElement,
} from '@rimbu/graph/custom';
import { HashMap, HashSet } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import { ArrowGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +13,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,10 +0,11 @@

import {
ArrowGraphBase,
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type {
ArrowGraphSortedCreators,
GraphContext,
GraphElement,
} from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import { ArrowGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +12,0 @@ * An type-invariant immutable valued arrow (directed) graph.

import type { RMap, RSet } from '@rimbu/collection-types';
import { ArrowGraphBase, GraphContext, Link } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { Link } from '@rimbu/graph/custom';
import { ArrowGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -6,0 +9,0 @@ * An type-invariant immutable arrow (directed) graph.

@@ -1,10 +0,11 @@

import {
EdgeGraphBase,
GraphContext,
import { HashMap, HashSet } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import type {
GraphElement,
EdgeGraphHashedCreators,
} from '@rimbu/graph/custom';
import { HashMap, HashSet } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import { EdgeGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +12,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -1,10 +0,11 @@

import {
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import type {
EdgeGraphSortedCreators,
EdgeGraphBase,
GraphContext,
GraphElement,
} from '@rimbu/graph/custom';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import { EdgeGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +12,0 @@ * An type-invariant immutable valued edge (undirected) graph.

import type { RMap, RSet } from '@rimbu/collection-types';
import { EdgeGraphBase, GraphContext, GraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { GraphElement } from '@rimbu/graph/custom';
import { EdgeGraphBase, GraphContext } from '@rimbu/graph/custom';
/**

@@ -6,0 +8,0 @@ * An type-invariant immutable edge (undirected) graph.

import { OptLazy } from '@rimbu/common';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import { HashSet } from '@rimbu/hashed';

@@ -7,3 +6,5 @@ import { SortedSet } from '@rimbu/sorted';

import { FastIteratorBase, StreamBase } from '@rimbu/stream/custom';
import type { LinkType } from './traverse-base';
import type { VariantGraphBase } from '@rimbu/graph/custom';

@@ -10,0 +11,0 @@ class GraphBreadthFirstStream<

import { OptLazy } from '@rimbu/common';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import { HashSet } from '@rimbu/hashed';

@@ -7,2 +6,4 @@ import { SortedSet } from '@rimbu/sorted';

import { FastIteratorBase, StreamBase } from '@rimbu/stream/custom';
import type { VariantGraphBase } from '@rimbu/graph/custom';
import type { LinkType } from './traverse-base';

@@ -9,0 +10,0 @@

@@ -1,10 +0,12 @@

import {
ArrowValuedGraphBase,
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap } from '@rimbu/hashed';
import type {
ArrowValuedGraphHashedCreators,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import { HashMap } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import { ArrowValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +13,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,10 +0,12 @@

import {
ArrowValuedGraphBase,
import type { Stream, Streamable } from '@rimbu/stream';
import { SortedMap } from '@rimbu/sorted';
import type {
ArrowValuedGraphSortedCreators,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import { SortedMap } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import { ArrowValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +13,0 @@ * An type-invariant immutable valued arrow (directed) graph.

import type { RMap } from '@rimbu/collection-types';
import {
ArrowValuedGraphBase,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement } from '@rimbu/graph/custom';
import { ArrowValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -10,0 +9,0 @@ * An type-invariant immutable valued arrow (directed) graph.

@@ -1,10 +0,12 @@

import {
EdgeValuedGraphBase,
import type { Stream, Streamable } from '@rimbu/stream';
import { HashMap } from '@rimbu/hashed';
import type {
EdgeValuedGraphHashedCreators,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import { HashMap } from '@rimbu/hashed';
import type { Stream, Streamable } from '@rimbu/stream';
import { EdgeValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +13,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -1,10 +0,12 @@

import {
EdgeValuedGraphBase,
import type { Stream, Streamable } from '@rimbu/stream';
import { SortedMap } from '@rimbu/sorted';
import type {
EdgeValuedGrapSortedCreators,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import { SortedMap } from '@rimbu/sorted';
import type { Stream, Streamable } from '@rimbu/stream';
import { EdgeValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -11,0 +13,0 @@ * An type-invariant immutable valued edge (undirected) graph.

import type { RMap } from '@rimbu/collection-types';
import {
EdgeValuedGraphBase,
ValuedGraphContext,
ValuedGraphElement,
} from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphElement } from '@rimbu/graph/custom';
import { EdgeValuedGraphBase, ValuedGraphContext } from '@rimbu/graph/custom';
/**

@@ -10,0 +9,0 @@ * An type-invariant immutable valued edge (undirected) graph.

@@ -1,4 +0,5 @@

import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';
import type { ValuedGraphBase, ValuedGraphElement } from '@rimbu/graph/custom';
/**

@@ -5,0 +6,0 @@ * An type-invariant immutable valued graph.

@@ -0,1 +1,3 @@

import type { Stream, Streamable } from '@rimbu/stream';
import type {

@@ -5,3 +7,2 @@ ValuedGraphElement,

} from '@rimbu/graph/custom';
import type { Stream, Streamable } from '@rimbu/stream';

@@ -8,0 +9,0 @@ /**

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

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

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

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc