dolfinx.cpp.graph

Graph module

Classes

AdjacencyList_int32([order, writable])

Adjacency List

AdjacencyList_int64([order, writable])

Adjacency List

class dolfinx.cpp.graph.AdjacencyList_int32(self, adj: ndarray[dtype=int32, shape=(*), order='C', writable=False])
class dolfinx.cpp.graph.AdjacencyList_int32(self, adj: ndarray[dtype=int32, shape=(*, *), order='C', writable=False])
class dolfinx.cpp.graph.AdjacencyList_int32(self, data: ndarray[dtype=int32, shape=(*), order='C', writable=False], offsets: ndarray[dtype=int32, shape=(*), order='C', writable=False])

Bases: object

Adjacency List

property array

(self) -> numpy.ndarray[dtype=int32, writable=False]

Links (edges) of a node

property num_nodes

(self) -> int

property offsets

(self) -> numpy.ndarray[dtype=int32, writable=False]

class dolfinx.cpp.graph.AdjacencyList_int64(self, adj: ndarray[dtype=int64, shape=(*), order='C', writable=False])
class dolfinx.cpp.graph.AdjacencyList_int64(self, adj: ndarray[dtype=int64, shape=(*, *), order='C', writable=False])
class dolfinx.cpp.graph.AdjacencyList_int64(self, data: ndarray[dtype=int64, shape=(*), order='C', writable=False], offsets: ndarray[dtype=int32, shape=(*), order='C', writable=False])

Bases: object

Adjacency List

property array

(self) -> numpy.ndarray[dtype=int64, writable=False]

Links (edges) of a node

property num_nodes

(self) -> int

property offsets

(self) -> numpy.ndarray[dtype=int32, writable=False]