Skip to main content

webgraph_cli/seq/
mod.rs

1/*
2 * SPDX-FileCopyrightText: 2025 Sebastiano Vigna
3 *
4 * SPDX-License-Identifier: Apache-2.0 OR MIT
5 */
6
7use anyhow::Result;
8use clap::Subcommand;
9
10pub mod float;
11pub mod int;
12
13#[derive(Subcommand, Debug)]
14#[command(name = "seq")]
15/// Converts sequences (e.g., permutations, centralities) between formats.​
16pub enum SubCommands {
17    Float(float::CliArgs),
18    Int(int::CliArgs),
19}
20
21pub fn main(subcommand: SubCommands) -> Result<()> {
22    match subcommand {
23        SubCommands::Float(args) => float::main(args),
24        SubCommands::Int(args) => int::main(args),
25    }
26}