Note that there are some explanatory texts on larger screens.

plurals
  1. POcreate force directed layout gexf file with node position generation
    primarykey
    data
    text
    <p>In my Database i've got nodes and edges.</p> <p>Position must have generated at gexf generation, the node must not overlap and</p> <p>generate this kind of Graph: <a href="http://www.nwoods.com/components/images/force-directed-layout.png" rel="nofollow">http://www.nwoods.com/components/images/force-directed-layout.png</a></p> <p>I use Sigma.js for presentating the graph.</p> <p><em>How can i calculate the node postition with an force directed alogrithm, with a root item?</em></p> <p>Or there a layout that can generate from node and edges a layout that not overlap and output like this png above?</p> <p>EDIT:</p> <p>PHP code for generating node position:</p> <pre><code> function _generate_gexf_node($test=false){ $count = 0; foreach ($node_array as $node) { $node_size = '22.714287'; $node_poz = ' x="'.rand(10, 300).'" y="'.rand(10, 300).'" z="'.rand(10, 300).'" '; $node_color = ' b="45" g="72" r="216" '; $data['node'][] = '&lt;node id="'.$node['node_id'].'" label="'.$node['label'].'"&gt; &lt;attvalues&gt; &lt;attvalue for="authority" value="0.01880342"/&gt; &lt;attvalue for="hub" value="0.01880342"/&gt; &lt;/attvalues&gt; &lt;viz:size value="'.$node_size.'"/&gt; &lt;viz:color '.$node_color.'/&gt; &lt;viz:position '.$node_poz.'/&gt; &lt;/node&gt; '; $count++; } return $data; } </code></pre> <p>How can i gnerete the position in "runtime", to like this <a href="http://www.nwoods.com/components/images/force-directed-layout.png" rel="nofollow">http://www.nwoods.com/components/images/force-directed-layout.png</a>?</p> <p>Where can i find implementation of YiFan Hu Force directed algorithm?</p> <p>Or a special Bubble layout implementation?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload