class Graph

Immutable graph container.

Attributes

x : tf.Tensor [N, F] Node features. a : Union[tf.Tensor [N,N], tf.SparseTensor] Adjacency (dense or sparse). Self-loops optional. y : Optional[tf.Tensor] Labels for nodes or graph. mask : Optional[tf.Tensor] Boolean mask for nodes when doing semi-supervised tasks.

Methods