Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bipartite network api update #347

Merged
merged 5 commits into from
Jan 30, 2024
Merged

Bipartite network api update #347

merged 5 commits into from
Jan 30, 2024

Conversation

d-callan
Copy link
Contributor

as discussed here

Copy link
Member

@asizemore asizemore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. I have one suggestion about naming that's worth considering.
Off to the frontend.
Also just fyi i haven't personally tested any of these - i'm just reading through the code! Lmk if you want more testing from my reviews or anything else

KPartiteNetwork:
additionalProperties: false
properties:
data: KPartiteNetworkData
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remind me what do we have planned for the partitions metadata?

@@ -120,12 +120,20 @@ protected void writeResults(OutputStream out, Map<String, InputStream> dataStrea
BipartiteNetworkData bipartiteNetworkData = new BipartiteNetworkDataImpl();
bipartiteNetworkData.setLinks(links);
bipartiteNetworkData.setNodes(nodes);
bipartiteNetworkData.setColumn1NodeIDs(uniqueColumn1IDs);
bipartiteNetworkData.setColumn2NodeIDs(uniqueColumn2IDs);
NodeIdList col1NodeIdList = new NodeIdListImpl();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth removing references to columns everywhere. There's no reason we need to even show the bp net in two columns (could be two rows, two blobs of nodes, or even nodes placed based on some layout algorithm but with two different colors), i just didn't have good words for it back in the day (4 months ago).
All that to say, i'd recommend "col1NodIdList" -> "partition1NodeIdList"

bipartiteNetworkConfig.setColumn2Metadata(stats.getData2Metadata());
List<String> partitionsMetadata = new ArrayList<String>();
partitionsMetadata.add(stats.getData1Metadata());
partitionsMetadata.add(stats.getData2Metadata());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh i remmber. that's what the metadata is

@d-callan d-callan merged commit 0d5e8c1 into master Jan 30, 2024
@d-callan d-callan deleted the bipartite-network-api-update branch January 30, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants