dolfinx.cpp.graph
Graph module
Functions
Default graph partitioner |
|
|
SCOTCH graph partitioner |
|
Classes
|
Adjacency List |
|
Adjacency List |
- class dolfinx.cpp.graph.AdjacencyList_int32(*args, **kwargs)
Bases:
pybind11_object
Adjacency List
Overloaded function.
__init__(self: dolfinx.cpp.graph.AdjacencyList_int32, adj: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.graph.AdjacencyList_int32, data: numpy.ndarray[numpy.int32], offsets: numpy.ndarray[numpy.int32]) -> None
- property array
- links(self: dolfinx.cpp.graph.AdjacencyList_int32, i: int) numpy.ndarray[numpy.int32]
Links (edges) of a node
- property num_nodes
- property offsets
- class dolfinx.cpp.graph.AdjacencyList_int64(*args, **kwargs)
Bases:
pybind11_object
Adjacency List
Overloaded function.
__init__(self: dolfinx.cpp.graph.AdjacencyList_int64, adj: numpy.ndarray[numpy.int64]) -> None
__init__(self: dolfinx.cpp.graph.AdjacencyList_int64, data: numpy.ndarray[numpy.int64], offsets: numpy.ndarray[numpy.int32]) -> None
- property array
- links(self: dolfinx.cpp.graph.AdjacencyList_int64, i: int) numpy.ndarray[numpy.int64]
Links (edges) of a node
- property num_nodes
- property offsets
- dolfinx.cpp.graph.partitioner() Callable[[MPICommWrapper, int, dolfinx.cpp.graph.AdjacencyList_int64, bool], dolfinx.cpp.graph.AdjacencyList_int32]
Default graph partitioner
- dolfinx.cpp.graph.partitioner_scotch(imbalance: float = 0.025, seed: int = 0) Callable[[MPICommWrapper, int, dolfinx.cpp.graph.AdjacencyList_int64, bool], dolfinx.cpp.graph.AdjacencyList_int32]
SCOTCH graph partitioner
- dolfinx.cpp.graph.reorder_gps(graph: dolfinx.cpp.graph.AdjacencyList_int32) List[int]