dolfinx.cpp.graph

Graph module

Functions

partitioner()

Default graph partitioner

partitioner_scotch([imbalance, seed])

SCOTCH graph partitioner

reorder_gps(arg0)

Classes

AdjacencyList_int32(*args, **kwargs)

Adjacency List

AdjacencyList_int64(*args, **kwargs)

Adjacency List

class dolfinx.cpp.graph.AdjacencyList_int32(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

Adjacency List

Overloaded function.

  1. __init__(self: dolfinx.cpp.graph.AdjacencyList_int32, arg0: numpy.ndarray[numpy.int32]) -> None

  2. __init__(self: dolfinx.cpp.graph.AdjacencyList_int32, data: numpy.ndarray[numpy.int32], offsets: numpy.ndarray[numpy.int32]) -> None

property array

Links (edges) of a node

property num_nodes
property offsets
class dolfinx.cpp.graph.AdjacencyList_int64(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

Adjacency List

Overloaded function.

  1. __init__(self: dolfinx.cpp.graph.AdjacencyList_int64, arg0: numpy.ndarray[numpy.int64]) -> None

  2. __init__(self: dolfinx.cpp.graph.AdjacencyList_int64, data: numpy.ndarray[numpy.int64], offsets: numpy.ndarray[numpy.int32]) -> None

property array

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(arg0: dolfinx.cpp.graph.AdjacencyList_int32) List[int]