dolfinx.graph
Graph representations and operations on graphs
Functions
| 
 | Create an AdjacencyList for int32 or int64 datasets. | 
- dolfinx.graph.create_adjacencylist(data: np.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 
 
- dolfinx.graph.partitioner() Callable[[MPICommWrapper, int, dolfinx.cpp.graph.AdjacencyList_int64, bool], dolfinx.cpp.graph.AdjacencyList_int32]
- Default graph partitioner