MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __init__

Method __init__

python/dolfinx/graph.py:52–69  ·  view source on GitHub ↗

Creates a Python wrapper for the exported adjacency list class. Note: Do not use this constructor directly. Instead use :func:`adjacencylist`. Args: g: The underlying cpp instance that this object will wrap.

(
        self,
        g: (
            _cpp.graph.AdjacencyList_int32
            | _cpp.graph.AdjacencyList_int64
            | _cpp.graph.AdjacencyList_int_sizet_int8__int32_int32
        ),
    )

Source from the content-addressed store, hash-verified

50 )
51
52 def __init__(
53 self,
54 g: (
55 _cpp.graph.AdjacencyList_int32
56 | _cpp.graph.AdjacencyList_int64
57 | _cpp.graph.AdjacencyList_int_sizet_int8__int32_int32
58 ),
59 ):
60 """Creates a Python wrapper for the exported adjacency list class.
61
62 Note:
63 Do not use this constructor directly. Instead use
64 :func:`adjacencylist`.
65
66 Args:
67 g: The underlying cpp instance that this object will wrap.
68 """
69 self._cpp_object = g
70
71 def __repr__(self):
72 """String representation of the adjacency list."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected