tensorflow / neural-structured-learning

Training neural models with structured signals.
https://www.tensorflow.org/neural_structured_learning
Apache License 2.0
982 stars 189 forks source link

implement add_undirected_edges #46

Closed laifi closed 4 years ago

laifi commented 4 years ago

Implementing the add_undirected_edges to makes all edges of the given graph bi-directional.

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

laifi commented 4 years ago

@googlebot I signed it!

googlebot commented 4 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

aheydon-google commented 4 years ago

Hi, @laifi, thanks for the PR.

I'm a bit confused by this change, as the add_undirected_edges() function is already implemented (see here). You can also see a unit test of the function demonstrating that it works here).

Is there something about the current implementation you find lacking or that you were trying to fix?

Thanks,

Allan

laifi commented 4 years ago

@aheydon-google Sorry , I was going through the code source and I found this function I got confused with the inner function all_graph_edges( ) so I thought the undirected graphs still not supported but it seems good with the current implementation. You can close this PR , Thanks :)

aheydon-google commented 4 years ago

Okay, thanks for getting back to me! - Allan