#directed-graph #graph #undirected-graph #dotnet #adjacency-matrix #nauty #file-format

app convg

A tool to convert directed and undirected graphs from NAUTY and Traces into adjacency, dot, and net files

5 releases

0.1.4 Mar 23, 2023
0.1.3 Mar 22, 2023
0.1.2 Mar 2, 2023
0.1.1 Feb 24, 2023
0.1.0 Feb 17, 2023

#1667 in Parser implementations

37 downloads per month

MIT license

9KB
187 lines

convg

a tool to convert directed and undirected graphs from NAUTY and Traces into adjacency, dot, and net files. (CONVert Graph)

Inspired by the NAUTY gtools suite - specifically the listg function but extending the functionality for directed graphs.

This should be able to determine what format your graphs are in, but you can fix the format beforehand with the -f flag.

Install

cargo install convg

Usage


# Converting from a `digraph6` file to a `DOT` file
convg -i my_directed_graph.g6

# Piping from undirected `graph6` file to adjacency matrices
geng -c 4 | convg -F adjmat

# Piping from directed `graph6` file to .NET
geng -c 4 | watercluster2 Z | convg -F net

# Skipping the first 3 graphs
convg -i my_directed_graph.g6 -s 3

# Only writing the first graph
convg -i my_directed_graph.g6 -c 1

# Writing graphs 10-13
convg -i my_directed_graph.g6 -s 10 -c 3

Dependencies

~1.3–1.9MB
~36K SLoC