-
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
Changes from 4 commits
13c0972
eb30f80
c396a25
fddea44
024392b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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). |
||
col1NodeIdList.setNodeIds(uniqueColumn1IDs); | ||
NodeIdList col2NodeIdList = new NodeIdListImpl(); | ||
col2NodeIdList.setNodeIds(uniqueColumn2IDs); | ||
List<NodeIdList> partitions = new ArrayList<NodeIdList>(); | ||
partitions.add(col1NodeIdList); | ||
partitions.add(col2NodeIdList); | ||
bipartiteNetworkData.setPartitions(partitions); | ||
|
||
BipartiteNetworkConfig bipartiteNetworkConfig = new BipartiteNetworkConfigImpl(); | ||
bipartiteNetworkConfig.setColumn1Metadata(stats.getData1Metadata()); | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. ahhh i remmber. that's what the metadata is |
||
bipartiteNetworkConfig.setPartitionsMetadata(partitionsMetadata); | ||
|
||
BipartiteNetwork bipartiteNetwork = new BipartiteNetworkImpl(); | ||
bipartiteNetwork.setData(bipartiteNetworkData); | ||
|
Large diffs are not rendered by default.
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?