Crates.io | graph_gen |
lib.rs | graph_gen |
version | 0.1.2 |
source | src |
created_at | 2020-04-02 00:04:18.64706 |
updated_at | 2020-04-02 10:48:03.82834 |
description | Generate pseudo-random graphs based on the Erdos-Renyi G(n,p) model. |
homepage | |
repository | https://github.com/xgillard/graph_gen |
max_upload_size | |
id | 225360 |
size | 24,731 |
Graph Gen is a conveniency tool (and library crate) that lets you generate pseudo-random graphs based on the Erdos-Renyi G(n,p) model.
This tool is mainly designed to be simple and reasonably fast. Its purpose was for me to use random input graphs in my research experiments. If you like it and/or find it useful, that's a bonus.
Graph Gen comes with several options:
-l
flag)-d
flag)-m
flag)-w
option).All necessary info should be available with the built in help.
graph_gen 0.1.2
Convenience tool to generate pseudo random graphs
USAGE:
graph_gen [FLAGS] [OPTIONS] --nb_vertices <nb_vertices> --probability <probability>
FLAGS:
-d, --digraph If set, the generated graph will be a digraph
-h, --help Prints help information
-l, --loops If set, self loops are allowed in the generated graph
-m, --max2sat If set, the generated graph will be a max2sat instance
-V, --version Prints version information
OPTIONS:
-n, --nb_vertices <nb_vertices> The number of vertices in the generated graph
-o, --output <output> The output language (defaults to dimacs)
-p, --probability <probability> The likelihood of any edge to be picked
-w, --weights <weights>... Optional weight candidates
Graph Gen was written in Rust. As such, it is compiled with the cargo
tool.
So cargo build --release
will produce the release binary in the target
folder.