bumblebee icon indicating copy to clipboard operation
bumblebee copied to clipboard

author network - small graphs not displayed

Open ehenneken opened this issue 7 years ago • 0 comments

Expected Behavior

For small graphs, the vis-services microservice returns JSON with simply a graph of author nodes and their linkages. With the JSON having a structure like

{"msg": {"start": 0, "rows": 400, "numFound": 8}, "data": {"fullGraph":{"nodes": [...], "links":[...]}}}

Instead of

{"msg": {"start": 0, "rows": 400, "numFound": 8}, "data":{"root": top_level, "bibcode_dict":bib_dict, "link_data" : link_data}}

### Actual Behavior
Even though the `vis-services` sends back data for the small graph version, the UI displays the message

The network grouping algorithm could not generate group data for your network.

This might be because the list of papers was too small or sparse to produce multiple meaningful groups.

which seems to be generated here: https://github.com/adsabs/bumblebee/blob/e269763f069bd6220088e62f9b6eb05317630b68/src/js/widgets/network_vis/network_widget.js#L463
### Steps to Reproduce
Run the query `author:"Di Milia, G"` which returns 8 results. The network view in the JavaScript console shows that data is returned:

{"msg": {"start": 0, "rows": 400, "numFound": 8}, "data": {"fullGraph": {"nodes": [{"nodeName": "Bohlen, E", "nodeWeight": 53.723118279569896}, {"nodeName": "Henneken, E", "nodeWeight": 114.91935483870968}, {"nodeName": "Luker, J", "nodeWeight": 69.31451612903227}, {"nodeName": "Conti, A", "nodeWeight": 24.48924731182796}, {"nodeName": "Thiell, B", "nodeWeight": 5.0}, {"nodeName": "Di Milia, G", "nodeWeight": 150.0}, {"nodeName": "Murray, S", "nodeWeight": 86.85483870967741}, {"nodeName": "Grant, C", "nodeWeight": 114.91935483870968}, {"nodeName": "Accomazzi, A", "nodeWeight": 150.0}, {"nodeName": "Thompson, D", "nodeWeight": 86.85483870967741}, {"nodeName": "Lowe, S", "nodeWeight": 24.48924731182796}, {"nodeName": "Kurtz, M", "nodeWeight": 114.91935483870968}], "links": [{"source": 8, "target": 5, "value": 40.0}, {"source": 7, "target": 9, "value": 30.48780487804878}, {"source": 11, "target": 6, "value": 30.48780487804878}, {"source": 7, "target": 4, "value": 1.0}, {"source": 1, "target": 11, "value": 39.048780487804876}, {"source": 5, "target": 4, "value": 1.0}, {"source": 3, "target": 5, "value": 5.756097560975608}, {"source": 0, "target": 2, "value": 6.7073170731707314}, {"source": 2, "target": 9, "value": 20.024390243902438}, {"source": 0, "target": 1, "value": 13.365853658536583}, {"source": 0, "target": 5, "value": 13.365853658536583}, {"source": 7, "target": 2, "value": 20.024390243902438}, {"source": 8, "target": 0, "value": 13.365853658536583}, {"source": 4, "target": 9, "value": 1.0}, {"source": 0, "target": 9, "value": 13.365853658536583}, {"source": 5, "target": 11, "value": 39.048780487804876}, {"source": 0, "target": 7, "value": 13.365853658536583}, {"source": 5, "target": 10, "value": 5.756097560975608}, {"source": 8, "target": 4, "value": 1.0}, {"source": 8, "target": 10, "value": 5.756097560975608}, {"source": 11, "target": 9, "value": 30.48780487804878}, {"source": 1, "target": 9, "value": 30.48780487804878}, {"source": 8, "target": 2, "value": 20.024390243902438}, {"source": 8, "target": 1, "value": 39.048780487804876}, {"source": 6, "target": 9, "value": 30.48780487804878}, {"source": 0, "target": 6, "value": 13.365853658536583}, {"source": 8, "target": 6, "value": 30.48780487804878}, {"source": 11, "target": 4, "value": 1.0}, {"source": 3, "target": 10, "value": 5.756097560975608}, {"source": 11, "target": 2, "value": 20.024390243902438}, {"source": 7, "target": 1, "value": 39.048780487804876}, {"source": 1, "target": 4, "value": 1.0}, {"source": 5, "target": 6, "value": 30.48780487804878}, {"source": 5, "target": 1, "value": 39.048780487804876}, {"source": 8, "target": 11, "value": 39.048780487804876}, {"source": 5, "target": 2, "value": 20.024390243902438}, {"source": 5, "target": 9, "value": 30.48780487804878}, {"source": 2, "target": 6, "value": 20.024390243902438}, {"source": 7, "target": 11, "value": 39.048780487804876}, {"source": 1, "target": 2, "value": 20.024390243902438}, {"source": 5, "target": 7, "value": 39.048780487804876}, {"source": 2, "target": 4, "value": 1.0}, {"source": 8, "target": 7, "value": 39.048780487804876}, {"source": 8, "target": 3, "value": 5.756097560975608}, {"source": 8, "target": 9, "value": 30.48780487804878}, {"source": 0, "target": 11, "value": 13.365853658536583}, {"source": 6, "target": 4, "value": 1.0}, {"source": 1, "target": 6, "value": 30.48780487804878}, {"source": 7, "target": 6, "value": 30.48780487804878}]}}}

ehenneken avatar Aug 10 '18 09:08 ehenneken