dolfinx.graph
Graph representations and operations on graphs.
Functions
|
Create an AdjacencyList for int32 or int64 datasets. |
- dolfinx.graph.adjacencylist(data: ndarray, offsets=None)[source]
Create an AdjacencyList for int32 or int64 datasets.
- Parameters:
data – The adjacency array. If the array is one-dimensional, offsets should be supplied. If the array is two-dimensional the number of edges per node is the second dimension.
offsets – The offsets array with the number of edges per node.
- Returns:
An adjacency list.