Open owendall opened 7 years ago
So, my intuition would be to add a distance to each edge:
{ data: { source: 'j', target: 'e' , distance: 55}}
I tried using cytoscape's "weight" attribute, but that didn't seem to work. I must be missing something fundamental...
How to use a function to make the layout use our pre-calculated weights?
some sort of map()
function for supplying the values to each link?
OK, trying to grok how to apply a function into the layout that will work:
Sorry I missed this query earlier... here is an example using a distance matrix
Does that help?
Thanks much...will check it out!
@tgdwyer Tim, would you mind letting me know If I have the correct understanding on this chart? Might help another Noob like me:
IMHO it would be much easier to include the distance in the edge attributes:
{ data: { source: 'j', target: 'e', distance; 3 } }
Like D3...(which uses "value" instead of "distance"
I am a noob trying to get up to speed quickly...
I have normalized document-to-document distance (0 -1 ) measures attached.
document-distance-measures.csv.zip
I see code for _distanceMatrix, but not sure exactly the best practice for specifying this in code, or the proper JSON for adding a distance to each link: