https://github.com/automata/json2sigma
Interactive view for JSON files exported from GML files using sigma.js
https://github.com/automata/json2sigma
Last synced: 3 months ago
JSON representation
Interactive view for JSON files exported from GML files using sigma.js
- Host: GitHub
- URL: https://github.com/automata/json2sigma
- Owner: automata
- Created: 2013-05-07T16:42:34.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-07T16:47:05.000Z (about 12 years ago)
- Last Synced: 2025-01-07T22:18:40.063Z (5 months ago)
- Language: JavaScript
- Size: 215 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GML2JS
Baseado no trabalho original de @coyotebush para visualização de repositórios de código do Github.
# Usando
Primeiramente é necessário este repositório:
git clone https://github.com/automata/json2sigma.git
Em seguida, precisamos usar o Gephi para exportar um arquivo GML qualquer para JSON:
1. Baixe e instale o Gephi
2. Instale o plugin JSONExporter: Ferramentas > Plugins > Procure e instale
3. Abra um arquivo GML qualquer no Gephi
4. Exporte a rede como JSON: Arquivo > Exportar > Arquivo de grafo > foo.jsonEdite o arquivo json2sigma/code.js, nas últimas linhas, para referenciar seu arquivofoo.json exportado:
graph.parseJson('foo.json', function() {
graph.iterEdges(function(e){
e.size=Math.sqrt(e.weight);
});
graph.draw();
});Salve o arquivo e abra o index.html em seu navegador Web.