Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphology-metrics

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-metrics - npm Package Compare versions

Comparing version 1.14.0 to 1.14.1

4

extent.d.ts
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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc