cuda.core.graph._adjacency_set_proxy.AdjacencySetProxy#

class cuda.core.graph._adjacency_set_proxy.AdjacencySetProxy(node: GraphNode, is_fwd)#

Mutable set proxy for a node’s predecessors or successors. Mutations write through to the underlying CUDA graph.

Methods

__init__(
self,
GraphNode node: GraphNode,
bool is_fwd,
) None#
add(self, GraphNode value: GraphNode) None#
clear(self) None#

Remove all edges in a single driver call.

discard(self, GraphNode value: GraphNode) None#
isdisjoint(other)#

Return True if two sets have a null intersection.

pop()#

Return the popped value. Raise KeyError if empty.

remove(value)#

Remove an element. If not a member, raise a KeyError.

update(self, *others) None#

Add edges to multiple nodes at once.