Jack000 / Color-Graph

client-side color graph library
MIT License
73 stars 10 forks source link

undirected weighted graph #1

Open Liangliangb opened 1 year ago

Liangliangb commented 1 year ago

Hi, I am interested in your code, I find it very interesting, I tried to use your code to build an undirected weighted graph, but it didn't work well, can you give me some help? I use colorgraph.js to generate a color palette, and an adjacency matrix describing the association between colors, and then use these to build an undirected weighted graph, where the nodes represent the colors and the size of the nodes represent the color frequencies, and then I don't know how the weights of the edges between two nodes should be determined. If you can give me some hints, I would appreciate it.

Liangliangb commented 1 year ago

image