
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Graph is a mathematical graph library. It is designed to be a functional, stand-alone, light-weight library for general purpose graph processing.
Definitions are taken from the Wikipedia glossary of mathematical graph theory. That's a great place to start to get a basic understanding of graph theory. The documentation in this library includes both the Wikipedia definitions and the the implemetation details.
Author Yoni Ben-Meshulam
See http://en.wikipedia.org/wiki/Glossary_of_graph_theory for a glossary of relevant concepts.
Project: http://github.com/yoni/Graph
Use this for anything. See LICENSE for copyright details.
The library uses Objects where graph theoretical instances have state. Namely, the Graph, Vertex, and Edge Objects are of concern in graph theory. Upper case functions are constructors for Objects which have state. These Objects' internal state can be modified using lower case functions which are attached to the Objects' prototype.
Lower case functions are a purely Functional library for manipulating graphs, meaning that the functions ALWAYS take inputs and produce outputs (i.e. arguments and return values), and that they NEVER change the internal state of their input.
To install using npm:
npm install Graph
/examples
for more)var g = require('Graph')
var v1 = new Vertex();
var v2 = new Vertex();
var e = new Edge(v1, v2); // Create an edge, connecting v1 and v2
var G = new Graph();
G.addVertices([v1,v2]); // Add an array or vertices t the graph
G.addEdge(e); // Add the edge to the graph
G.addEdges([e1]);
To create a Vertex, an Edge, or a Graph, use their corresponding constructors, which are upper case functions. These objects are stateful and can be changed using methods like addVertex
or isDireced
.
Lower case functions do not change the state of their arguments. They have input and produce output in a purely functional way. For example, to check if an edge is a link or a loop, you can pass it a function which checks for this:
edge.isLink(e);
To clone with git
git clone git@github.com:yoni/Graph.git
FAQs
A mathematical Graph theory library.
The npm package Graph receives a total of 11 weekly downloads. As such, Graph popularity was classified as not popular.
We found that Graph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.