-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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
as discussed here