Does Octave do Graph Theory?

I’m learning Graph Theory, but can’t seem to find anything in the docs about it. Does Octave draw graphs from adjacency matrices or directly, etc? I looked for a graph theory toolbox and found a lot of pdfs but not the toolbox itself.

Welcome to the Octave forum. Octave makes it easy to represent adjacency matrices as full matrices or as sparse matrices. Edge lists are handled like any other array or matrix. There are a few graph-specific routines like gplot (adj, xy) which will draw a graph using xy for vertex coordinates and adj for edge information. See help gplot for more information.

1 Like