|
|
@ -45,11 +45,10 @@ function parseGephi(gephiJSON, optionsObj) { |
|
|
|
var gNode = gNodes[i]; |
|
|
|
node['id'] = gNode.id; |
|
|
|
node['attributes'] = gNode.attributes; |
|
|
|
node['title'] = gNode.title; |
|
|
|
node['x'] = gNode.x; |
|
|
|
node['y'] = gNode.y; |
|
|
|
node['label'] = gNode.label; |
|
|
|
node['title'] = gNode.attributes !== undefined ? gNode.attributes.title : undefined; |
|
|
|
node['title'] = gNode.attributes !== undefined ? gNode.attributes.title : gNode.title; |
|
|
|
if (options.nodes.parseColor === true) { |
|
|
|
node['color'] = gNode.color; |
|
|
|
} |
|
|
@ -64,4 +63,4 @@ function parseGephi(gephiJSON, optionsObj) { |
|
|
|
return {nodes:nodes, edges:edges}; |
|
|
|
} |
|
|
|
|
|
|
|
exports.parseGephi = parseGephi; |
|
|
|
exports.parseGephi = parseGephi; |