Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 2 KB

File metadata and controls

72 lines (45 loc) · 2 KB

Input/Output

NetworkX

These methods require networkx to be installed.

.. autofunction:: graphblas.io.from_networkx

.. autofunction:: graphblas.io.to_networkx

Numpy

These methods require scipy to be installed, as some of the scipy.sparse machinery is used during the conversion process.

.. autofunction:: graphblas.io.from_numpy

.. autofunction:: graphblas.io.to_numpy

Scipy Sparse

These methods require scipy to be installed.

.. autofunction:: graphblas.io.from_scipy_sparse

.. autofunction:: graphblas.io.to_scipy_sparse

PyData Sparse

These methods require sparse to be installed.

.. autofunction:: graphblas.io.from_pydata_sparse

.. autofunction:: graphblas.io.to_pydata_sparse

Matrix Market

Matrix Market is a plain-text format for storing graphs.

These methods require scipy to be installed.

.. autofunction:: graphblas.io.mmread

.. autofunction:: graphblas.io.mmwrite

Awkward Array

Awkward Array is a library for nested, variable-sized data, including arbitrary-length lists, records, mixed types, and missing data, using NumPy-like idioms. Note that the intended use of the awkward-array-related io functions is to convert graphblas objects to awkward, perform necessary computations/transformations and, if required, convert the awkward array back to graphblas format. To facilitate this conversion process, graphblas.io.to_awkward adds top-level attribute format, describing the format of the graphblas object (this attributed is used by the graphblas.io.from_awkward function to reconstruct the graphblas object).

.. autofunction:: graphblas.io.to_awkward

.. autofunction:: graphblas.io.from_awkward

Visualization

.. autofunction:: graphblas.viz.draw