cytoscape

Networkx parse gml writing unusable gml files

江枫思渺然 提交于 2020-01-05 07:48:12
问题 I've been trying to parse in some additional attributes to a networkx gml for use later on, and I've run into an issue. When given a gml file from Cytoscape, networkx outputs a gml file that it itself can't read. I.e. Cytoscape -> Into networkx -> Output -> Into networkx -> Error: pyparsing.ParseException: Expected "]" (at char 1116756), (line:71732, col:3) Now that error requests an additional ] after the nodes (AKA making the graph ignore the edges), if you do this, the graph works. However

Networkx parse gml writing unusable gml files

荒凉一梦 提交于 2020-01-05 07:47:48
问题 I've been trying to parse in some additional attributes to a networkx gml for use later on, and I've run into an issue. When given a gml file from Cytoscape, networkx outputs a gml file that it itself can't read. I.e. Cytoscape -> Into networkx -> Output -> Into networkx -> Error: pyparsing.ParseException: Expected "]" (at char 1116756), (line:71732, col:3) Now that error requests an additional ] after the nodes (AKA making the graph ignore the edges), if you do this, the graph works. However

Cytoscape dynamically style last added node only

允我心安 提交于 2020-01-04 14:17:17
问题 I'm in the beginning phase of using Cytoscape.js and I'm trying to style the last added node to my dagre-layout tree. For context, I'm trying to visualize the Git workflow as I make a Git commit. The current nodes on the tree are colored green. When I make a Git commit, a new node will be added to the end of the Git (dagre) tree with a color of red. Once I make another commit, a new red node will be added... but I want the previous node that was red, to be green like the other nodes. cy.add([

Perform Centrality Functions on all Nodes using Cytoscape.js

跟風遠走 提交于 2019-12-25 08:01:28
问题 I need to calculate degree, closeness and betweenness centrality for every node on a graph. I'm currently using the functions built into Cytoscape.js on each node after the cy.ready() event. However, as the graphs are quite large (250+ Nodes, 650+ Connections) it's taking too long to compute. Can anyone suggest a more efficient method? var calculateSNA = function() { // Don't run if already set... if(data.sna) return false console.log('Running SNA') _.map(nodes, function(node) { var target =

Cytoscape Graph is not showing

放肆的年华 提交于 2019-12-25 03:06:19
问题 I am trying to show a cytoscape graph in an ext window. Everything is working well, until i add the ext-all.css, the graph is no longer displayed. This is the panel were the graph is supposed to be shown ( the #cy div) var formPanel2 = new Ext.form.FormPanel({ id : 'graph_model', bodyStyle : 'padding:10px', width :400, height : 400, overflow:'auto', items : [ { html: "<div id='cy' style=' height: 100%; width: 100%; position: absolute; left: 0; top: 0 '></div>", xtype: "panel"} ] }); where is

JAX-WS fails to unmarshal in an OSGI environment

独自空忆成欢 提交于 2019-12-24 03:59:23
问题 I've been tasked with updating a plugin for Cytoscape, a biological visualization software platform, to the latest version of the Cytoscape API. Cytoscape 3.x uses an OSGI framework (Karaf 2.2.x, I think) to interface with its plugins (which are now called "apps"). The plugin/app is actually a client that uses JAX-WS to communicate with an external server. But for some reason, despite the absence of any error messages, it fails to unmarshal the SOAP messages that it's getting. The desired

How to highlight the path between two nodes in CYTOSCAPE JS

*爱你&永不变心* 提交于 2019-12-18 06:54:25
问题 i can create a graph using cytoscape js library . i am following the this tutorial and i implement like this. CODE: $(function(){ // on dom ready $('#cy').cytoscape({ style: cytoscape.stylesheet() .selector('node') .css({ 'content': 'data(id)' }) .selector('edge') .css({ 'target-arrow-shape': 'triangle', 'width': 4, 'line-color': '#ddd', 'target-arrow-color': '#ddd' }) .selector('.highlighted') .css({ 'background-color': '#61bffc', 'line-color': '#61bffc', 'target-arrow-color': '#61bffc',

Displaying qTip hover on outer nodes of Cytoscape.js graph?

与世无争的帅哥 提交于 2019-12-12 01:58:33
问题 When hovering over the outer nodes of graph in Cytoscape.js, the qTip dialog is not displayed. Is there anyway to display the qTip bubbles upon hovering on an outer node? I can have the qtip popup on nodes in the upper half but not much along the sides of the graph. Especially towards the bottom half. cy.elements('node').qtip({ id: function() { return this.data('id'); }, content: function() { return this.data('name') + '<br /><em>$' + this.data('weight') + '</em>'; }, position: { my: 'bottom

Cytsocape.js can not create edge with nonexistant target

三世轮回 提交于 2019-12-11 02:06:50
问题 I try to create an edge after I created the nodes using an AJAX request. My code: success: function(data) { $.each(data['kids'], function(i, value) { cy.add({ group: 'nodes', data: { id: value['id'] }, position: value['position'] }); }) } This works and created the nodes. Now, using this I try to create the edge: cy.add({ group: 'edges', data: { id: 'e0', source: 'n0', target: 'n1' } }); but returns: Can not create edge e0 with nonexistant source n0 Can not create edge e0 with nonexistant

a custom image on each node in cytoscape

拜拜、爱过 提交于 2019-12-11 01:10:27
问题 I would like to use Cytoscape to have all glyphs of an ideographic font with lots of contextual alternates and other extras represented as a network graph. For me it is critical to have a glyph image on each node to track and control relations between them. So far, I've learned how to use styles to assign background images to nodes, but this changes all nodes at once, which doesn't help much. I would appreciate your help on whether it's possible to achieve my goal by some built-in function of