microsoft / tf2-gnn

TensorFlow 2 library implementing Graph Neural Networks
MIT License
371 stars 73 forks source link

Implement fine-grained control over tying forward-backward edge types #19

Closed kmaziarz closed 4 years ago

kmaziarz commented 4 years ago

I made tie_fwd_bkwd_edges in all dataset classes accept arguments of type Union[bool, Set[int]]. It allows to either tie all forward/backward edge types (by supplying bool, as supported previously), or only a subset of them (by supplying a set of edge types to tie).

This is useful for downstream tasks which mix directed and undirected edges.