Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tiny-graph
Advanced tools
Readme
Tiny graph data structure for Client or Server
const graph = require('tiny-graph'),
g = graph();
g.setNodeValue('f', 3);
g.setNodeValue('h', 21);
g.add('f', 'h');
g.setEdgeValue('f', 'h', 100);
console.log(g.adjacent('f', 'h')); // true
console.log(g.neighbors('f')); // ['h']
console.log(g.getEdgeValue('f', 'h')); // 100
tiny-graph can be installed from npm & bower, and supports AMD loaders or script tags (window.graph
).
Adds the edge from x
to y
, if it is not there
Tests whether there is an edge from node x
to node y
Removes the edge from x
to y
, if it is there
Removes node x
from the graph, if it is there
Deserializes arg as the graph
Returns the value associated to the edge (x
, y
)
Returns the value associated with the node x
Lists all nodes y
such that there is an edge from x
to y
Sets the value associated to the edge (x
, y
) to v
Sets the value associated with the node x
to v
Serializes the graph as JSON
Copyright (c) 2018 Jason Mulligan Licensed under the BSD-3 license
FAQs
Tiny graph data structure for Client or Server
The npm package tiny-graph receives a total of 9 weekly downloads. As such, tiny-graph popularity was classified as not popular.
We found that tiny-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.