Crates.io | dachshund |
lib.rs | dachshund |
version | 0.1.10 |
source | src |
created_at | 2020-08-07 00:32:13.936635 |
updated_at | 2023-11-16 18:02:30.520355 |
description | Dachshund is a graph mining library written in Rust. It provides high performance data structures for multiple kinds of graphs, from simple undirected graphs to typed hypergraphs. Dachshund also provides algorithms for common tasks for graph mining and analysis, ranging from shortest paths to graph spectral analysis. |
homepage | |
repository | https://github.com/facebookresearch/dachshund |
max_upload_size | |
id | 273788 |
size | 382,193 |
Dachshund is a graph mining library written in Rust. It provides high performance data structures for multiple kinds of graphs, from simple undirected graphs to typed hypergraphs. Dachshund also provides algorithms for common tasks for graph mining and analysis, ranging from shortest paths to graph spectral analysis.
This application takes a list of graphs and featurizes it. For instance:
cat example.txt | cut -s -f1-3 | target/debug/simple_graph_featurizer
The output will look like this:
0 {"bet_cent":1.2,"clust_coef":0.0,"evcent":0.868,"num_16_cores":0,"num_17_trusses":0,"num_2_cores":1,"num_3_trusses":0,"num_4_cores":0,"num_5_trusses":0,"num_8_cores":0,"num_9_trusses":0,"num_connected_components":1,"num_edges":5,"size_of_largest_cc":5}
What the various JSON-encoded features mean:
bet_cent
: average betweenness centrality.clust_coef
: average clustering coefficient.evcent
: average eigenvector centrality.num_{k}_cores
: {k}-core count.num_{k}_trusses
: {k}-truss count.num_connected_components
: number of connected components.num_edges
: number of edges.size_of_largest_cc
: number of nodes in largest connected component.This application finds the largest (quasi-) cliques in a graph. For instance:
cargo build
cat example.txt | target/debug/clique_miner \
--typespec '[["author", "published", "article"]]' \
--beam_size 20 --alpha 0.1 --global_thresh 1.0 \
--local_thresh 1.0 --num_to_search 10 --epochs 200 \
--max_repeated_prior_scores 3 --debug_mode false \
--min_degree 1 --core_type author --long_format false
The output should look like this:
0 2 2 [1,2] [3,4] ["article","article"] 1 [1.0,1.0] [1.0]
What this means:
For a better explanation of what the various arguments mean:
target/debug/clique_miner --help
To run various tests:
cargo test
All requirements are handled by cargo.
Simply run cargo build
. The executable should show up in target/debug/clique_miner
.
The clique miner is the first dachshund application. It uses a beam search algorithm (plus some other optimizations) to find the largest (quasi-)cliques it can find. It supports initialization with known clique solutions.
See ./target/debug/clique_miner --help
for meaning of each option.
See the CONTRIBUTING file for how to help out.
Dachshund is MIT licensed, as found in the LICENSE file.