graphology-utils
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -1,2 +0,2 @@ | ||
import Graph, {Attributes, NodeKey, EdgeKey} from 'graphology-types'; | ||
import Graph, {Attributes} from 'graphology-types'; | ||
@@ -6,5 +6,5 @@ export function addEdge<EdgeAttributes extends Attributes = Attributes>( | ||
undirected: boolean, | ||
key: EdgeKey | null | undefined, | ||
source: NodeKey, | ||
target: NodeKey, | ||
key: unknown, | ||
source: unknown, | ||
target: unknown, | ||
attributes?: EdgeAttributes | ||
@@ -16,5 +16,5 @@ ): void; | ||
undirected: boolean, | ||
key: EdgeKey | null | undefined, | ||
source: NodeKey, | ||
target: NodeKey, | ||
key: unknown, | ||
source: unknown, | ||
target: unknown, | ||
attributes?: EdgeAttributes | ||
@@ -26,5 +26,5 @@ ): void; | ||
undirected: boolean, | ||
key: EdgeKey | null | undefined, | ||
source: NodeKey, | ||
target: NodeKey, | ||
key: unknown, | ||
source: unknown, | ||
target: unknown, | ||
attributes?: EdgeAttributes | ||
@@ -36,6 +36,6 @@ ): void; | ||
undirected: boolean, | ||
key: EdgeKey | null | undefined, | ||
source: NodeKey, | ||
target: NodeKey, | ||
key: unknown, | ||
source: unknown, | ||
target: unknown, | ||
attributes?: EdgeAttributes | ||
): void; |
@@ -1,7 +0,7 @@ | ||
import Graph, {NodeKey, Attributes} from 'graphology-types'; | ||
import Graph, {Attributes} from 'graphology-types'; | ||
export function copyNode<NodeAttributes extends Attributes = Attributes>( | ||
graph: Graph, | ||
key: NodeKey, | ||
key: unknown, | ||
attributes?: NodeAttributes | ||
): void; |
The MIT License (MIT) | ||
Copyright (c) 2017-2019 Guillaume Plique (Yomguithereal) | ||
Copyright (c) 2017-2021 Guillaume Plique (Yomguithereal) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -1,3 +0,3 @@ | ||
import Graph, {NodeKey} from 'graphology-types'; | ||
import Graph from 'graphology-types'; | ||
export default function mergeClique(graph: Graph, nodes: Array<NodeKey>): void; | ||
export default function mergeClique(graph: Graph, nodes: Array<unknown>): void; |
@@ -1,3 +0,3 @@ | ||
import Graph, {NodeKey} from 'graphology-types'; | ||
import Graph from 'graphology-types'; | ||
export default function mergeCycle(graph: Graph, nodes: Array<NodeKey>): void; | ||
export default function mergeCycle(graph: Graph, nodes: Array<unknown>): void; |
@@ -1,3 +0,3 @@ | ||
import Graph, {NodeKey} from 'graphology-types'; | ||
import Graph from 'graphology-types'; | ||
export default function mergePath(graph: Graph, nodes: Array<NodeKey>): void; | ||
export default function mergePath(graph: Graph, nodes: Array<unknown>): void; |
@@ -1,3 +0,3 @@ | ||
import Graph, {NodeKey} from 'graphology-types'; | ||
import Graph from 'graphology-types'; | ||
export default function mergeStar(graph: Graph, nodes: Array<NodeKey>): void; | ||
export default function mergeStar(graph: Graph, nodes: Array<unknown>): void; |
{ | ||
"name": "graphology-utils", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Miscellaneous utils for graphology.", | ||
@@ -24,4 +24,4 @@ "main": "index.js", | ||
"scripts": { | ||
"prepublishOnly": "npm run lint && npm test", | ||
"lint": "eslint '**/*.js'", | ||
"prepublishOnly": "npm run lint && npm test", | ||
"test": "mocha test.js" | ||
@@ -53,18 +53,8 @@ }, | ||
"homepage": "https://github.com/graphology/graphology-utils#readme", | ||
"devDependencies": { | ||
"@yomguithereal/eslint-config": "^4.0.0", | ||
"eslint": "^7.30.0", | ||
"graphology": "^0.20.0", | ||
"graphology-types": "0.19.2", | ||
"mocha": "^9.0.2" | ||
"peerDependencies": { | ||
"graphology-types": ">=0.20.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": "@yomguithereal/eslint-config", | ||
"globals": { | ||
"Set": true | ||
} | ||
}, | ||
"peerDependencies": { | ||
"graphology-types": ">=0.19.0" | ||
"extends": "@yomguithereal/eslint-config" | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
[![Build Status](https://github.com/graphology/graphology-utils/workflows/Tests/badge.svg)](https://github.com/graphology/graphology-utils/actions) | ||
# Graphology Utils | ||
@@ -4,0 +2,0 @@ |
@@ -1,7 +0,7 @@ | ||
import Graph, {NodeKey, EdgeKey} from 'graphology-types'; | ||
import Graph from 'graphology-types'; | ||
export default function renameGraphKeys( | ||
graph: Graph, | ||
nodeKeyMapping: Record<NodeKey, NodeKey> = {}, | ||
edgeKeyMapping: Record<EdgeKey, EdgeKey> = {} | ||
nodeKeyMapping: Record<string, unknown>, | ||
edgeKeyMapping: Record<string, unknown> | ||
): Graph; |
@@ -1,2 +0,2 @@ | ||
import Graph, {NodeKey, EdgeKey, Attributes} from 'graphology-types'; | ||
import Graph, {Attributes} from 'graphology-types'; | ||
@@ -8,8 +8,8 @@ export default function updateGraphKeys< | ||
graph: Graph<NodeAttributes, EdgeAttributes>, | ||
nodeKeyUpdater: (key: NodeKey, attributes: NodeAttributes) => NodeKey, | ||
nodeKeyUpdater: (key: string, attributes: NodeAttributes) => unknown, | ||
edgeKeyUpdater: ( | ||
key: EdgeKey, | ||
key: string, | ||
attributes: EdgeAttributes, | ||
source: NodeKey, | ||
target: NodeKey, | ||
source: string, | ||
target: string, | ||
sourceAttributes: NodeAttributes, | ||
@@ -19,3 +19,3 @@ targetAttributes: NodeAttributes, | ||
generatedKey: boolean | ||
) => EdgeKey | ||
) => unknown | ||
): Graph; |
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
0
23969
263