sigma.js

Can't display any graph with Sigma.js

主宰稳场 提交于 2019-12-04 06:05:47
I want to visualize a large network graph on a web interface. After a few days of search, I decided to use Sigma.js because it looks simple and it's HTML5 compatible. The problem is that I can't display any graph example from Sigma.js web page, even when I use the minimal code that the author has on Sigma.js's homepage. I even copy-pasted entire web pages, with right click-view code, but in vain ( like this ). I have pasted all the necessary files in the same folder that the simple .html file is located (css files, js files and even the .gexf file that the example needs) but I only get a page

Adding sigma.js navigation buttons

旧街凉风 提交于 2019-12-03 20:14:43
I'm new to javascript and sigma.js, and I'm trying to get navigation buttons to scroll up/down/left/right in the canvas, much like what is found here So far, I have a simple example that I'm trying to get working on jsfiddle: http://jsfiddle.net/dpmartin42/kSkkG/16/ I'm using the following line of code I found on GitHub and am trying to build off of it: $('[data-action="up"]').bind('click', function(e) { // With "inst" our sigma instance: var newPos = inst.position(); newPos.stageY += 80; inst.goTo(newPos.stageX, newPos.stageY); e.stopPropagation(); return false; }); I have been messing with

Graph visualization frameworks

北城余情 提交于 2019-12-01 15:31:30
I want to visualize a Neo4j database in a graphical application. (I'm doing this primarily as a learning exercise). I want it to behave almost identically to the visualization in Neo4j's WebAdmin: When the graphic appears, I want to see the nodes moving around as they settle into their final locations, and I want the user to be able to click and drag node icons around the screen and have them stick where they are dropped, with the rest of the graph adjusting to account for the change. I have two questions. What are the technical terms for the three requirements crudely described in the

show edge label in sigma.js

只谈情不闲聊 提交于 2019-11-30 15:22:33
I am trying to load a gexf file with sigInst.parseGexf('data/test.gexf'). To create an edge with label I have this line in gexf file: <edge label="test" id="7" source="14" target="18" type="directed"/> but seems that sigma.js ignore this label field. How can I show edge labels in graph. Thanks in advance. It's not yet possible with the main sigma.js library. However, I just forked the repository and added the capability on github.com here: https://github.com/sam2themax/sigma.js To enable this new feature, set edgeLabels to true in your drawingProperties. It's now possible to do this with a new