NodeEdge

Contents

NodeEdge#

class brainstate.graph.NodeEdge(index)[source]#

A reference to a graph node by its global index.

Parameters:

index (int) – The global index of the referenced graph node. The same index appears on every edge that points at the node, so sharing and cycles are encoded by index equality.