a custom image on each node in cytoscape

拜拜、爱过 提交于 2019-12-11 01:10:27

问题


I would like to use Cytoscape to have all glyphs of an ideographic font with lots of contextual alternates and other extras represented as a network graph. For me it is critical to have a glyph image on each node to track and control relations between them. So far, I've learned how to use styles to assign background images to nodes, but this changes all nodes at once, which doesn't help much. I would appreciate your help on whether it's possible to achieve my goal by some built-in function of Cytoscape, or programmatically, or by any other means.


回答1:


This calls for a Discrete Mapping Function.

Switch to the Style control panel, select the Image/Chart1 property, and open the triangle. Select the column you want to map to your glyph, and select Discrete Mapping as the Mapping Type.

Then assign your images. This information can be saved as an xml visual style sheet.

This points to the styles page in the manual



来源:https://stackoverflow.com/questions/49887779/a-custom-image-on-each-node-in-cytoscape

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!