I wonder what is the best strategy to plot a graph that has to represent similar texts. Each vertex is a text, and each edge is how far one is from another text. The shorter the distance, the texts are more similar. Thus, a graph that represents good these distances exhibit several separate groups of vertices well separated in space. With that I could identify easily texts similar.<br>
I tried to use some strategies like:<br><span id="result_box" class="" lang="en"><span style="" title=""><br></span><span style="font-family: courier new,monospace;" title="">strategy = </span></span><span style="font-family: courier new,monospace;" id="result_box" class="" lang="en"><span style="" title="">vtkForceDirectedLayoutStrategy</span></span><span id="result_box" class="" lang="en"><span style="" title=""><span style="font-family: courier new,monospace;">()</span><br>
</span></span>and<span id="result_box" class="" lang="en"><span title=""><br></span><span style="" title=""></span></span><span style="font-family: courier new,monospace;" id="result_box" class="" lang="en"><span style="" title="">strategy</span></span><span style="font-family: courier new,monospace;" id="result_box" class="" lang="en"><span style="" title=""> = </span></span><span style="font-family: courier new,monospace;" id="result_box" class="" lang="en"><span style="" title="">vtkSimple2DLayoutStrategy</span></span><span id="result_box" class="" lang="en"><span style="" title=""><span style="font-family: courier new,monospace;">()</span><br>
<br></span></span>As I do not know how they work, and if there are other ways to do better what I want, I'm here writing.<br><br>Is there any way to visually represent the weights in a graph? So that the edges with larger weights get bigger and the edges of smaller weights them smaller, visually... <br>
<span id="result_box" class="" lang="en"><span style="" title="">Any suggestions on how to do something? </span><span style="" title="">If I use vtkForceDirectedLayoutStrategy (), some vertex groups are formed. </span><span title="">They are well formed in this context? </span><span style="" title="">It seemed to me that, but I do not know how well the graph left. </span><span style="" title="">I did some tests to identify the vertices together and they were really like. </span><span style="" title="">But the edges do not represent the weight, just show a number indicating the weight.</span></span><br>
<br>Thank you,<br>Henry<br><br>PS I'm using Python to do this work.<br>