![]() |
STAG C++
2.0.0
Spectral Toolkit of Algorithms for Graphs
|
The STAG library includes several command line tools for working with graph files. These tools are automatically installed with the library.
The stag_sbm
command line tool can be used to generate random graphs from the symmetric stochastic block model.
Creates a new EdgeList file named [filename]
containing a graph drawn from the symmetric stochastic block model with parameters [n]
, [k]
, [p]
, and [q]
. Equivalent to calling the stag::sbm method and saving the resulting graph as an EdgeList.
STAG supports two file formats (see Graph File Formats), and the stag_edge2adj
and stag_adj2edge
command line tools can be used to convert between them.
Converts the EdgeList file to a new AdjacencyList file. Equivalent to calling stag::edgelist_to_adjacencylist.
Converts the AdjacencyList file to a new EdgeList file. Equivalent to calling stag::adjacencylist_to_edgelist.