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.7.5 to 0.7.6

14

dist/types/graph/arrow/arrow-graph-base.d.ts

@@ -32,5 +32,8 @@ import type { RelatedTo } from '@rimbu/common';

export declare namespace ArrowGraphBase {
type NonEmptyBase<N, Tp extends ArrowGraphBase.Types> = GraphBase.NonEmpty<N, Tp> & ArrowGraphBase<N, Tp>;
export interface NonEmpty<N, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends NonEmptyBase<N, Tp>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase.NonEmpty<N, Tp>, Omit<ArrowGraphBase<N, Tp>, keyof GraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**
* Returns true since this is an arrow (directed) graph instance.
*/
readonly isDirected: true;
/**
* Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

@@ -43,8 +46,8 @@ * and 2-valued tuples of nodes for connections.

}
export interface Builder<N, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase.Builder<N, Tp> {
interface Builder<N, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase.Builder<N, Tp> {
}
export interface Context<UN, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase.Context<UN, Tp> {
interface Context<UN, Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types> extends GraphBase.Context<UN, Tp> {
readonly isDirected: true;
}
export interface Types extends GraphBase.Types {
interface Types extends GraphBase.Types {
readonly normal: ArrowGraphBase<this['_N']>;

@@ -55,3 +58,2 @@ readonly nonEmpty: ArrowGraphBase.NonEmpty<this['_N']>;

}
export {};
}

@@ -18,3 +18,2 @@ import type { RSet } from '@rimbu/collection-types';

export declare namespace ArrowGraphHashed {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraphHashed.Types> & ArrowGraphHashed<N>;
/**

@@ -25,3 +24,3 @@ * A non-empty type-invariant immutable valued arrow (directed) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends ArrowGraphBase.NonEmpty<N, ArrowGraphHashed.Types>, Omit<ArrowGraphHashed<N>, keyof ArrowGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -39,3 +38,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraphHashed.Types> {
interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraphHashed.Types> {
}

@@ -46,6 +45,6 @@ /**

*/
export interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraphHashed.Types> {
interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraphHashed.Types> {
readonly typeTag: 'ArrowGraphHashed';
}
export interface Types extends ArrowGraphBase.Types {
interface Types extends ArrowGraphBase.Types {
readonly normal: ArrowGraphHashed<this['_N']>;

@@ -63,3 +62,2 @@ readonly nonEmpty: ArrowGraphHashed.NonEmpty<this['_N']>;

}
export {};
}

@@ -66,0 +64,0 @@ declare function createContext<UN>(options?: {

@@ -18,3 +18,2 @@ import type { RSet } from '@rimbu/collection-types';

export declare namespace ArrowGraphSorted {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraphSorted.Types> & ArrowGraphSorted<N>;
/**

@@ -25,3 +24,3 @@ * A non-empty type-invariant immutable valued arrow (directed) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends ArrowGraphBase.NonEmpty<N, ArrowGraphSorted.Types>, Omit<ArrowGraphSorted<N>, keyof ArrowGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -39,3 +38,3 @@ * Returns a non-empty Stream containing all entries of this collection as tuples of key and value.

*/
export interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraphSorted.Types> {
interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraphSorted.Types> {
}

@@ -46,6 +45,6 @@ /**

*/
export interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraphSorted.Types> {
interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraphSorted.Types> {
readonly typeTag: 'ArrowGraphSorted';
}
export interface Types extends ArrowGraphBase.Types {
interface Types extends ArrowGraphBase.Types {
readonly normal: ArrowGraphSorted<this['_N']>;

@@ -63,3 +62,2 @@ readonly nonEmpty: ArrowGraphSorted.NonEmpty<this['_N']>;

}
export {};
}

@@ -66,0 +64,0 @@ declare function createContext<UN>(options?: {

@@ -12,3 +12,2 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export declare namespace ArrowGraph {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraph.Types> & ArrowGraph<N>;
/**

@@ -18,3 +17,3 @@ * A non-empty type-invariant immutable arrow (directed) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<[N] | Link<N>> {
interface NonEmpty<N> extends ArrowGraphBase.NonEmpty<N, ArrowGraph.Types>, Omit<ArrowGraph<N>, keyof ArrowGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<[N] | Link<N>> {
/**

@@ -32,3 +31,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraph.Types> {
interface Builder<N> extends ArrowGraphBase.Builder<N, ArrowGraph.Types> {
}

@@ -39,5 +38,5 @@ /**

*/
export interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraph.Types> {
interface Context<UN> extends ArrowGraphBase.Context<UN, ArrowGraph.Types> {
}
export interface Types extends ArrowGraphBase.Types {
interface Types extends ArrowGraphBase.Types {
readonly normal: ArrowGraph<this['_N']>;

@@ -48,3 +47,2 @@ readonly nonEmpty: ArrowGraph.NonEmpty<this['_N']>;

}
export {};
}

@@ -51,0 +49,0 @@ export declare const ArrowGraph: {

@@ -11,4 +11,3 @@ import type { Stream, Streamable } from '@rimbu/stream';

export declare namespace EdgeGraphBase {
type NonEmptyBase<N, Tp extends EdgeGraphBase.Types> = GraphBase.NonEmpty<N, Tp> & EdgeGraphBase<N, Tp>;
export interface NonEmpty<N, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends NonEmptyBase<N, Tp>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase.NonEmpty<N, Tp>, Omit<EdgeGraphBase<N, Tp>, keyof GraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -22,8 +21,8 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

}
export interface Builder<N, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase.Builder<N, Tp> {
interface Builder<N, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase.Builder<N, Tp> {
}
export interface Context<UN, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase.Context<UN, Tp> {
interface Context<UN, Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types> extends GraphBase.Context<UN, Tp> {
readonly isDirected: false;
}
export interface Types extends GraphBase.Types {
interface Types extends GraphBase.Types {
readonly normal: EdgeGraphBase<this['_N']>;

@@ -34,3 +33,2 @@ readonly nonEmpty: EdgeGraphBase.NonEmpty<this['_N']>;

}
export {};
}

@@ -18,3 +18,2 @@ import type { RSet } from '@rimbu/collection-types';

export declare namespace EdgeGraphHashed {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraphHashed.Types> & EdgeGraphHashed<N>;
/**

@@ -25,3 +24,3 @@ * A non-empty type-invariant immutable valued edge (undirected) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends EdgeGraphBase.NonEmpty<N, EdgeGraphHashed.Types>, Omit<EdgeGraphHashed<N>, keyof EdgeGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -39,3 +38,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraphHashed.Types> {
interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraphHashed.Types> {
}

@@ -46,6 +45,6 @@ /**

*/
export interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraphHashed.Types> {
interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraphHashed.Types> {
readonly typeTag: 'EdgeGraphHashed';
}
export interface Types extends EdgeGraphBase.Types {
interface Types extends EdgeGraphBase.Types {
readonly normal: EdgeGraphHashed<this['_N']>;

@@ -63,3 +62,2 @@ readonly nonEmpty: EdgeGraphHashed.NonEmpty<this['_N']>;

}
export {};
}

@@ -66,0 +64,0 @@ declare function createContext<UN>(options?: {

@@ -18,3 +18,2 @@ import type { RSet } from '@rimbu/collection-types';

export declare namespace EdgeGraphSorted {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraphSorted.Types> & EdgeGraphSorted<N>;
/**

@@ -25,3 +24,3 @@ * A non-empty type-invariant immutable valued edge (undirected) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends EdgeGraphBase.NonEmpty<N, EdgeGraphSorted.Types>, Omit<EdgeGraphSorted<N>, keyof EdgeGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -39,3 +38,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraphSorted.Types> {
interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraphSorted.Types> {
}

@@ -46,6 +45,6 @@ /**

*/
export interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraphSorted.Types> {
interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraphSorted.Types> {
readonly typeTag: 'EdgeGraphSorted';
}
export interface Types extends EdgeGraphBase.Types {
interface Types extends EdgeGraphBase.Types {
readonly normal: EdgeGraphSorted<this['_N']>;

@@ -63,3 +62,2 @@ readonly nonEmpty: EdgeGraphSorted.NonEmpty<this['_N']>;

}
export {};
}

@@ -66,0 +64,0 @@ declare function createContext<UN>(options?: {

@@ -12,3 +12,2 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export declare namespace EdgeGraph {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraph.Types> & EdgeGraph<N>;
/**

@@ -18,3 +17,3 @@ * A non-empty type-invariant immutable edge (undirected) graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends EdgeGraphBase.NonEmpty<N, EdgeGraph.Types>, Omit<EdgeGraph<N>, keyof EdgeGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -32,3 +31,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraph.Types> {
interface Builder<N> extends EdgeGraphBase.Builder<N, EdgeGraph.Types> {
}

@@ -39,5 +38,5 @@ /**

*/
export interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraph.Types> {
interface Context<UN> extends EdgeGraphBase.Context<UN, EdgeGraph.Types> {
}
export interface Types extends EdgeGraphBase.Types {
interface Types extends EdgeGraphBase.Types {
readonly normal: EdgeGraph<this['_N']>;

@@ -48,3 +47,2 @@ readonly nonEmpty: EdgeGraph.NonEmpty<this['_N']>;

}
export {};
}

@@ -51,0 +49,0 @@ export declare const EdgeGraph: {

@@ -47,4 +47,3 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export declare namespace GraphBase {
type NonEmptyBase<N, Tp extends GraphBase.Types> = VariantGraphBase.NonEmpty<N, unknown, Tp> & GraphConnectNonEmpty<N, unknown, Tp> & GraphBase<N, Tp>;
export interface NonEmpty<N, Tp extends GraphBase.Types = GraphBase.Types> extends NonEmptyBase<N, Tp>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N, Tp extends GraphBase.Types = GraphBase.Types> extends VariantGraphBase.NonEmpty<N, unknown, Tp>, Omit<GraphConnectNonEmpty<N, unknown, Tp>, keyof VariantGraphBase.NonEmpty<any, any, any>>, Omit<GraphBase<N, Tp>, keyof VariantGraphBase.NonEmpty<any, any, any> | keyof GraphConnectNonEmpty<any, any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -65,3 +64,3 @@ * Returns the nested non-empty Map representation of the graph connections.

}
export interface Builder<N, Tp extends GraphBase.Types = GraphBase.Types> {
interface Builder<N, Tp extends GraphBase.Types = GraphBase.Types> {
/**

@@ -272,3 +271,3 @@ * Returns the `context` associated to this collection instance.

}
export interface Context<UN, Tp extends GraphBase.Types = GraphBase.Types> {
interface Context<UN, Tp extends GraphBase.Types = GraphBase.Types> {
/**

@@ -337,3 +336,3 @@ * A string tag defining the specific collection type

}
export interface Types extends VariantGraphBase.Types {
interface Types extends VariantGraphBase.Types {
readonly normal: GraphBase<this['_N']>;

@@ -351,3 +350,2 @@ readonly nonEmpty: GraphBase.NonEmpty<this['_N']>;

}
export {};
}

@@ -11,3 +11,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export declare namespace Graph {
type NonEmptyBase<N> = GraphBase.NonEmpty<N, Graph.Types> & Graph<N>;
/**

@@ -17,3 +16,3 @@ * A non-empty type-invariant immutable graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends GraphBase.NonEmpty<N, Graph.Types>, Omit<Graph<N>, keyof GraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -31,3 +30,3 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

*/
export interface Builder<N> extends GraphBase.Builder<N, Graph.Types> {
interface Builder<N> extends GraphBase.Builder<N, Graph.Types> {
}

@@ -38,5 +37,5 @@ /**

*/
export interface Context<UN> extends GraphBase.Context<UN, Graph.Types> {
interface Context<UN> extends GraphBase.Context<UN, Graph.Types> {
}
export interface Types extends GraphBase.Types {
interface Types extends GraphBase.Types {
readonly normal: Graph<this['_N']>;

@@ -46,3 +45,2 @@ readonly nonEmpty: Graph.NonEmpty<this['_N']>;

}
export {};
}

@@ -11,3 +11,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export declare namespace VariantGraph {
type NonEmptyBase<N> = VariantGraphBase.NonEmpty<N, VariantGraph.Types> & VariantGraph<N>;
/**

@@ -17,3 +16,3 @@ * A non-empty type-variant immutable graph.

*/
export interface NonEmpty<N> extends NonEmptyBase<N>, Streamable.NonEmpty<GraphElement<N>> {
interface NonEmpty<N> extends VariantGraphBase.NonEmpty<N, VariantGraph.Types>, Omit<VariantGraph<N>, keyof VariantGraphBase.NonEmpty<any, any>>, Streamable.NonEmpty<GraphElement<N>> {
/**

@@ -27,7 +26,6 @@ * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

}
export interface Types extends VariantGraphBase.Types {
interface Types extends VariantGraphBase.Types {
readonly normal: VariantGraph<this['_N']>;
readonly nonEmpty: VariantGraph.NonEmpty<this['_N']>;
}
export {};
}

@@ -89,4 +89,3 @@ import type { Token } from '@rimbu/base';

export declare namespace ValuedGraphBase {
type NonEmptyBase<N, V, Tp extends ValuedGraphBase.Types> = VariantValuedGraphBase.NonEmpty<N, V, Tp> & GraphConnectNonEmpty<N, V, Tp> & ValuedGraphBase<N, V, Tp>;
export interface NonEmpty<N, V, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> extends NonEmptyBase<N, V, Tp>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
interface NonEmpty<N, V, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> extends VariantValuedGraphBase.NonEmpty<N, V, Tp>, Omit<GraphConnectNonEmpty<N, V, Tp>, keyof VariantValuedGraphBase.NonEmpty<any, any, any>>, Omit<ValuedGraphBase<N, V, Tp>, keyof VariantValuedGraphBase.NonEmpty<any, any, any> | keyof GraphConnectNonEmpty<any, any, any>>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
/**

@@ -118,3 +117,3 @@ * Returns the nested non-empty Map representation of the graph connections.

}
export interface Builder<N, V, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> {
interface Builder<N, V, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> {
/**

@@ -353,3 +352,3 @@ * Returns the `context` associated to this collection instance.

}
export interface Context<UN, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> {
interface Context<UN, Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types> {
/**

@@ -418,3 +417,3 @@ * A string tag defining the specific collection type

}
export interface Types extends VariantValuedGraphBase.Types {
interface Types extends VariantValuedGraphBase.Types {
readonly normal: ValuedGraphBase<this['_N'], this['_V']> & VariantGraphBase<this['_N'], this['_V']>;

@@ -432,3 +431,2 @@ readonly nonEmpty: ValuedGraphBase.NonEmpty<this['_N'], this['_V']>;

}
export {};
}

@@ -12,3 +12,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export declare namespace ValuedGraph {
type NonEmptyBase<N, V> = ValuedGraphBase.NonEmpty<N, V, ValuedGraph.Types> & ValuedGraph<N, V>;
/**

@@ -19,3 +18,3 @@ * A non-empty type-invariant immutable valued graph.

*/
export interface NonEmpty<N, V> extends NonEmptyBase<N, V>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
interface NonEmpty<N, V> extends ValuedGraphBase.NonEmpty<N, V, ValuedGraph.Types>, Omit<ValuedGraph<N, V>, keyof ValuedGraphBase.NonEmpty<any, any, any>>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
stream(): Stream.NonEmpty<ValuedGraphElement<N, V>>;

@@ -28,3 +27,3 @@ }

*/
export interface Builder<N, V> extends ValuedGraphBase.Builder<N, V, ValuedGraph.Types> {
interface Builder<N, V> extends ValuedGraphBase.Builder<N, V, ValuedGraph.Types> {
}

@@ -35,5 +34,5 @@ /**

*/
export interface Context<UN> extends ValuedGraphBase.Context<UN, ValuedGraph.Types> {
interface Context<UN> extends ValuedGraphBase.Context<UN, ValuedGraph.Types> {
}
export interface Types extends ValuedGraphBase.Types {
interface Types extends ValuedGraphBase.Types {
readonly normal: ValuedGraph<this['_N'], this['_V']>;

@@ -44,3 +43,2 @@ readonly nonEmpty: ValuedGraph.NonEmpty<this['_N'], this['_V']>;

}
export {};
}

@@ -31,4 +31,3 @@ import type { OptLazy, RelatedTo } from '@rimbu/common';

export declare namespace VariantValuedGraphBase {
type NonEmptyBase<N, V, Tp extends VariantValuedGraphBase.Types> = VariantGraphBase.NonEmpty<N, V, Tp> & VariantValuedGraphBase<N, V, Tp>;
export interface NonEmpty<N, V, Tp extends VariantValuedGraphBase.Types = VariantValuedGraphBase.Types> extends NonEmptyBase<N, V, Tp>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
interface NonEmpty<N, V, Tp extends VariantValuedGraphBase.Types = VariantValuedGraphBase.Types> extends VariantGraphBase.NonEmpty<N, V, Tp>, Omit<VariantValuedGraphBase<N, V, Tp>, keyof VariantGraphBase.NonEmpty<any, any, any>>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
/**

@@ -50,3 +49,3 @@ * Returns a non-empty Stream containing all entries of this collection as tuples of key and value.

}
export interface Types extends VariantGraphBase.Types {
interface Types extends VariantGraphBase.Types {
readonly normal: VariantValuedGraphBase<this['_N'], this['_V']>;

@@ -57,3 +56,2 @@ readonly nonEmpty: VariantValuedGraphBase.NonEmpty<this['_N'], this['_V']>;

}
export {};
}

@@ -12,3 +12,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export declare namespace VariantValuedGraph {
type NonEmptyBase<N, V> = VariantValuedGraphBase.NonEmpty<N, V, VariantValuedGraph.Types> & VariantValuedGraph<N, V>;
/**

@@ -19,3 +18,3 @@ * A non-empty type-variant immutable valued graph.

*/
export interface NonEmpty<N, V> extends NonEmptyBase<N, V>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
interface NonEmpty<N, V> extends VariantValuedGraphBase.NonEmpty<N, V, VariantValuedGraph.Types>, Omit<VariantValuedGraph<N, V>, keyof VariantValuedGraphBase.NonEmpty<any, any, any>>, Streamable.NonEmpty<ValuedGraphElement<N, V>> {
/**

@@ -29,7 +28,6 @@ * Returns a non-empty Stream containing all entries of this collection as tuples of key and value.

}
export interface Types extends VariantValuedGraphBase.Types {
interface Types extends VariantValuedGraphBase.Types {
readonly normal: VariantValuedGraph<this['_N'], this['_V']>;
readonly nonEmpty: VariantValuedGraph.NonEmpty<this['_N'], this['_V']>;
}
export {};
}
{
"name": "@rimbu/graph",
"version": "0.7.5",
"version": "0.7.6",
"description": "Immutable Graph data structures for TypeScript",

@@ -20,3 +20,3 @@ "keywords": [

],
"homepage": "http://rimbu.org",
"homepage": "https://rimbu.org",
"author": {

@@ -65,7 +65,7 @@ "name": "Arvid Nicolaas",

"dependencies": {
"@rimbu/collection-types": "^0.7.4",
"@rimbu/common": "^0.7.4",
"@rimbu/hashed": "^0.6.7",
"@rimbu/sorted": "^0.7.1",
"@rimbu/stream": "^0.7.4",
"@rimbu/collection-types": "^0.7.5",
"@rimbu/common": "^0.7.5",
"@rimbu/hashed": "^0.6.8",
"@rimbu/sorted": "^0.7.2",
"@rimbu/stream": "^0.7.5",
"tslib": "^2.3.1"

@@ -79,3 +79,3 @@ },

},
"gitHead": "e509f9938fad6253702f6b78eb9f8e3b3a8f92ac"
"gitHead": "20739fd0c0d5c565eeecd3e266dd51f893e8d67c"
}

@@ -24,5 +24,5 @@ <p align="center">

For complete documentation please visit the _[Rimbu Docs](http://rimbu.org)_.
For complete documentation please visit the [Graph page](https://rimbu.org/docs/collections/graph) _[Rimbu Docs](https://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.
Or [Try Out Rimbu](https://codesandbox.io/s/github/vitoke/rimbu-sandbox/tree/main?previewwindow=console&view=split&editorsize=65&moduleview=1&module=/src/index.ts) in CodeSandBox.

@@ -29,0 +29,0 @@ ## Installation

@@ -37,14 +37,14 @@ import type { RelatedTo } from '@rimbu/common';

export namespace ArrowGraphBase {
type NonEmptyBase<N, Tp extends ArrowGraphBase.Types> = GraphBase.NonEmpty<
N,
Tp
> &
ArrowGraphBase<N, Tp>;
export interface NonEmpty<
N,
Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types
> extends NonEmptyBase<N, Tp>,
> extends GraphBase.NonEmpty<N, Tp>,
Omit<ArrowGraphBase<N, Tp>, keyof GraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {
/**
* Returns true since this is an arrow (directed) graph instance.
*/
readonly isDirected: true;
/**
* Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes

@@ -51,0 +51,0 @@ * and 2-valued tuples of nodes for connections.

@@ -21,5 +21,2 @@ import type { RSet } from '@rimbu/collection-types';

export namespace ArrowGraphHashed {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraphHashed.Types> &
ArrowGraphHashed<N>;
/**

@@ -31,3 +28,4 @@ * A non-empty type-invariant immutable valued arrow (directed) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends ArrowGraphBase.NonEmpty<N, ArrowGraphHashed.Types>,
Omit<ArrowGraphHashed<N>, keyof ArrowGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -34,0 +32,0 @@ /**

@@ -21,5 +21,2 @@ import type { RSet } from '@rimbu/collection-types';

export namespace ArrowGraphSorted {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraphSorted.Types> &
ArrowGraphSorted<N>;
/**

@@ -31,3 +28,4 @@ * A non-empty type-invariant immutable valued arrow (directed) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends ArrowGraphBase.NonEmpty<N, ArrowGraphSorted.Types>,
Omit<ArrowGraphSorted<N>, keyof ArrowGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -34,0 +32,0 @@ /**

@@ -14,5 +14,2 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export namespace ArrowGraph {
type NonEmptyBase<N> = ArrowGraphBase.NonEmpty<N, ArrowGraph.Types> &
ArrowGraph<N>;
/**

@@ -23,3 +20,4 @@ * A non-empty type-invariant immutable arrow (directed) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends ArrowGraphBase.NonEmpty<N, ArrowGraph.Types>,
Omit<ArrowGraph<N>, keyof ArrowGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<[N] | Link<N>> {

@@ -26,0 +24,0 @@ /**

@@ -16,12 +16,7 @@ import type { Stream, Streamable } from '@rimbu/stream';

export namespace EdgeGraphBase {
type NonEmptyBase<N, Tp extends EdgeGraphBase.Types> = GraphBase.NonEmpty<
N,
Tp
> &
EdgeGraphBase<N, Tp>;
export interface NonEmpty<
N,
Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types
> extends NonEmptyBase<N, Tp>,
> extends GraphBase.NonEmpty<N, Tp>,
Omit<EdgeGraphBase<N, Tp>, keyof GraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -28,0 +23,0 @@ /**

@@ -21,5 +21,2 @@ import type { RSet } from '@rimbu/collection-types';

export namespace EdgeGraphHashed {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraphHashed.Types> &
EdgeGraphHashed<N>;
/**

@@ -31,3 +28,4 @@ * A non-empty type-invariant immutable valued edge (undirected) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends EdgeGraphBase.NonEmpty<N, EdgeGraphHashed.Types>,
Omit<EdgeGraphHashed<N>, keyof EdgeGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -34,0 +32,0 @@ /**

@@ -21,5 +21,2 @@ import type { RSet } from '@rimbu/collection-types';

export namespace EdgeGraphSorted {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraphSorted.Types> &
EdgeGraphSorted<N>;
/**

@@ -31,3 +28,4 @@ * A non-empty type-invariant immutable valued edge (undirected) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends EdgeGraphBase.NonEmpty<N, EdgeGraphSorted.Types>,
Omit<EdgeGraphSorted<N>, keyof EdgeGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -34,0 +32,0 @@ /**

@@ -14,5 +14,2 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export namespace EdgeGraph {
type NonEmptyBase<N> = EdgeGraphBase.NonEmpty<N, EdgeGraph.Types> &
EdgeGraph<N>;
/**

@@ -23,3 +20,4 @@ * A non-empty type-invariant immutable edge (undirected) graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends EdgeGraphBase.NonEmpty<N, EdgeGraph.Types>,
Omit<EdgeGraph<N>, keyof EdgeGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -26,0 +24,0 @@ /**

@@ -57,12 +57,13 @@ import type { RMap, RSet } from '@rimbu/collection-types';

export namespace GraphBase {
type NonEmptyBase<N, Tp extends GraphBase.Types> = VariantGraphBase.NonEmpty<
N,
unknown,
Tp
> &
GraphConnectNonEmpty<N, unknown, Tp> &
GraphBase<N, Tp>;
export interface NonEmpty<N, Tp extends GraphBase.Types = GraphBase.Types>
extends NonEmptyBase<N, Tp>,
extends VariantGraphBase.NonEmpty<N, unknown, Tp>,
Omit<
GraphConnectNonEmpty<N, unknown, Tp>,
keyof VariantGraphBase.NonEmpty<any, any, any>
>,
Omit<
GraphBase<N, Tp>,
| keyof VariantGraphBase.NonEmpty<any, any, any>
| keyof GraphConnectNonEmpty<any, any, any>
>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -69,0 +70,0 @@ /**

@@ -12,4 +12,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export namespace Graph {
type NonEmptyBase<N> = GraphBase.NonEmpty<N, Graph.Types> & Graph<N>;
/**

@@ -20,3 +18,4 @@ * A non-empty type-invariant immutable graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends GraphBase.NonEmpty<N, Graph.Types>,
Omit<Graph<N>, keyof GraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -23,0 +22,0 @@ /**

@@ -13,5 +13,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export namespace VariantGraph {
type NonEmptyBase<N> = VariantGraphBase.NonEmpty<N, VariantGraph.Types> &
VariantGraph<N>;
/**

@@ -22,3 +19,4 @@ * A non-empty type-variant immutable graph.

export interface NonEmpty<N>
extends NonEmptyBase<N>,
extends VariantGraphBase.NonEmpty<N, VariantGraph.Types>,
Omit<VariantGraph<N>, keyof VariantGraphBase.NonEmpty<any, any>>,
Streamable.NonEmpty<GraphElement<N>> {

@@ -25,0 +23,0 @@ /**

@@ -101,3 +101,3 @@ import { OptLazy } from '@rimbu/common';

startNode: N,
addVisitedNode: (node: N) => boolean = () => true
addVisitedNode: (node: N) => boolean = (): boolean => true
): Stream<LinkType<G, N>> {

@@ -104,0 +104,0 @@ if (!graph.nonEmpty() || !graph.hasNode(startNode)) return Stream.empty();

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

export namespace ValuedGraphBase {
type NonEmptyBase<
N,
V,
Tp extends ValuedGraphBase.Types
> = VariantValuedGraphBase.NonEmpty<N, V, Tp> &
GraphConnectNonEmpty<N, V, Tp> &
ValuedGraphBase<N, V, Tp>;
export interface NonEmpty<

@@ -130,3 +122,12 @@ N,

Tp extends ValuedGraphBase.Types = ValuedGraphBase.Types
> extends NonEmptyBase<N, V, Tp>,
> extends VariantValuedGraphBase.NonEmpty<N, V, Tp>,
Omit<
GraphConnectNonEmpty<N, V, Tp>,
keyof VariantValuedGraphBase.NonEmpty<any, any, any>
>,
Omit<
ValuedGraphBase<N, V, Tp>,
| keyof VariantValuedGraphBase.NonEmpty<any, any, any>
| keyof GraphConnectNonEmpty<any, any, any>
>,
Streamable.NonEmpty<ValuedGraphElement<N, V>> {

@@ -133,0 +134,0 @@ /**

@@ -14,5 +14,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export namespace ValuedGraph {
type NonEmptyBase<N, V> = ValuedGraphBase.NonEmpty<N, V, ValuedGraph.Types> &
ValuedGraph<N, V>;
/**

@@ -24,3 +21,4 @@ * A non-empty type-invariant immutable valued graph.

export interface NonEmpty<N, V>
extends NonEmptyBase<N, V>,
extends ValuedGraphBase.NonEmpty<N, V, ValuedGraph.Types>,
Omit<ValuedGraph<N, V>, keyof ValuedGraphBase.NonEmpty<any, any, any>>,
Streamable.NonEmpty<ValuedGraphElement<N, V>> {

@@ -27,0 +25,0 @@ stream(): Stream.NonEmpty<ValuedGraphElement<N, V>>;

@@ -46,8 +46,2 @@ import type { OptLazy, RelatedTo } from '@rimbu/common';

export namespace VariantValuedGraphBase {
type NonEmptyBase<
N,
V,
Tp extends VariantValuedGraphBase.Types
> = VariantGraphBase.NonEmpty<N, V, Tp> & VariantValuedGraphBase<N, V, Tp>;
export interface NonEmpty<

@@ -57,3 +51,7 @@ N,

Tp extends VariantValuedGraphBase.Types = VariantValuedGraphBase.Types
> extends NonEmptyBase<N, V, Tp>,
> extends VariantGraphBase.NonEmpty<N, V, Tp>,
Omit<
VariantValuedGraphBase<N, V, Tp>,
keyof VariantGraphBase.NonEmpty<any, any, any>
>,
Streamable.NonEmpty<ValuedGraphElement<N, V>> {

@@ -60,0 +58,0 @@ /**

@@ -14,9 +14,2 @@ import type { Stream, Streamable } from '@rimbu/stream';

export namespace VariantValuedGraph {
type NonEmptyBase<N, V> = VariantValuedGraphBase.NonEmpty<
N,
V,
VariantValuedGraph.Types
> &
VariantValuedGraph<N, V>;
/**

@@ -28,3 +21,7 @@ * A non-empty type-variant immutable valued graph.

export interface NonEmpty<N, V>
extends NonEmptyBase<N, V>,
extends VariantValuedGraphBase.NonEmpty<N, V, VariantValuedGraph.Types>,
Omit<
VariantValuedGraph<N, V>,
keyof VariantValuedGraphBase.NonEmpty<any, any, any>
>,
Streamable.NonEmpty<ValuedGraphElement<N, V>> {

@@ -31,0 +28,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

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