graphology-metrics
Advanced tools
Comparing version 1.14.0 to 1.14.1
import Graph from 'graphology-types'; | ||
type Extent = [number, number]; | ||
type ExtentMapping = {[key: string]: Extent}; | ||
export type Extent = [number, number]; | ||
export type ExtentMapping = {[key: string]: Extent}; | ||
@@ -6,0 +6,0 @@ interface IExtent { |
@@ -22,10 +22,5 @@ /** | ||
var nodes = graph.nodes(), | ||
node, | ||
data, | ||
value, | ||
var value, | ||
key, | ||
a, | ||
i, | ||
l; | ||
a; | ||
@@ -40,6 +35,3 @@ var results = {}; | ||
for (i = 0, l = nodes.length; i < l; i++) { | ||
node = nodes[i]; | ||
data = graph.getNodeAttributes(node); | ||
graph.forEachNode(function(node, data) { | ||
for (a = 0; a < attributes.length; a++) { | ||
@@ -55,3 +47,3 @@ key = attributes[a]; | ||
} | ||
} | ||
}); | ||
@@ -74,10 +66,5 @@ return typeof attribute === 'string' ? results[attribute] : results; | ||
var edges = graph.edges(), | ||
edge, | ||
data, | ||
value, | ||
var value, | ||
key, | ||
a, | ||
i, | ||
l; | ||
a; | ||
@@ -92,6 +79,3 @@ var results = {}; | ||
for (i = 0, l = edges.length; i < l; i++) { | ||
edge = edges[i]; | ||
data = graph.getEdgeAttributes(edge); | ||
graph.forEachEdge(function(edge, data) { | ||
for (a = 0; a < attributes.length; a++) { | ||
@@ -107,3 +91,3 @@ key = attributes[a]; | ||
} | ||
} | ||
}); | ||
@@ -110,0 +94,0 @@ return typeof attribute === 'string' ? results[attribute] : results; |
{ | ||
"name": "graphology-metrics", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "Miscellaneous graph metrics for graphology.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
72482
1623