hypergraphx 0.0.5

A hypergraph library for Rust, based on the Python library of the same name.
Documentation
#[cfg(feature = "temporal")]
use hypergraphx::prelude::*;
#[cfg(feature = "temporal")]
fn main() {
    let mut graph: UndirectedTemporalGraph<(), ()> = UndirectedTemporalGraph::new();

    // Just to show that you *can* access some of the inner methods,
    graph.induced_shgraph(&[0, 1, 2]);

    // even ones in traits,
    graph.degree_sequence();

    // but not the &mut methods in the inner type impl.
    // this one is obviously going to fail, HypergraphErrors::EdgeTooSmall,
    // but it compiles.
    let _ = graph.add_edge((), TemporalBehaviour::Permanent, vec![]);
    // And this one does not compile.
    // let _ = graph.add_edge((), vec![]);
    (*graph).add_edge((), vec![]);
}

#[cfg(not(feature = "temporal"))]
fn main() {
    println!("Dude, the file is temporal.rs for a reason. Go enable the feature.");
}