Skip to content

diracdeltafunk/fcars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcars Rust

Formal Concept Analysis in Rust

Installation

In your cargo project, add

fcars = {git = "https://github.com/diracdeltafunk/fcars.git"}

to the [dependencies] section of your Cargo.toml file.

Or, to also enable generating random formal contexts, use

fcars = {git = "https://github.com/diracdeltafunk/fcars.git", features=["random"]}

Example

With the "random" feature enabled:

use fcars::*;

fn main() {
    let context = FormalContext::random_with_density(10, 12, 0.8);
    println!("Context:\n{}", context);
    let concepts = context.all_concepts();
    println!("Reduced? {}\n", context.is_reduced());
    for concept in concepts {
        println!("{}", concept);
    }
}

About

A rust library for Formal Concept Analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages