Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Property graph benchmark that creates graphs with specified node and edge numbers, supporting multiple output formats and visualization
Knows is a user-friendly tool for benchmarking property graphs. These graphs are crucial in many fields. Knows supports multiple output formats and visualization capabilities, making it a go-to tool for educators, researchers, and data enthusiasts.
Person
with unique IDs (N1, N2, N3, ..., Nn
).firstName
and lastName
properties with randomly assigned names.knows
and include a createDate
property with a random date.You can install knows via PyPI Docker or run it from the source code.
Installation:
pip install knows[draw]
The draw
installs a matplotlib
library for graph visualization. You can omit the [draw]
if you don't need visualization and svg
output generation.
Running Knows:
knows [nodes] [edges] [options]
Pull Image:
docker pull lszeremeta/knows
Run Container:
docker run --rm lszeremeta/knows [nodes] [edges] [options]
Build Image:
docker build -t knows .
Run Container:
docker run --rm knows [nodes] [edges] [options]
Clone Repository:
git clone git@github.com:lszeremeta/knows.git
cd knows
Install Requirements:
pip install -r requirements.txt
Execute Knows:
python -m knows [nodes] [edges] [options]
knows [nodes] [edges] [options]
To view all available options, use:
knows -h
nodes
: Specify the number of nodes in the graph. Selected randomly if not specified.edges
: Specify the number of edges in the graph. Selected randomly if not specified.-h
, --help
: Display the help message and exit the program.-f {graphml,yarspg,gexf,gml,svg,adjacency_list,multiline_adjacency_list,edge_list,json}
, --format {graphml,yarspg,gexf,gml,svg,adjacency_list,multiline_adjacency_list,edge_list,json}
:
Choose the format to output the graph. Default: graphml
.-d
, --draw
: Generate an image of the graph (default is no image). This option may not work in the Docker.knows
knows 100 70 -f yarspg > graph.yarspg
knows 100 50 > graph.graphml
knows 100 50 -f svg -d > graph.svg
knows 100 50 -f svg > graph.svg
knows -f json > graph.json
Your ideas and contributions can make Knows even better! If you're new to open source, read How to Contribute to Open Source and CONTRIBUTING.md.
Knows is licensed under the MIT License.
FAQs
Property graph benchmark that creates graphs with specified node and edge numbers, supporting multiple output formats and visualization
We found that knows demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.