Reusable styling set

18 views
Skip to first unread message

Michel Michaels

unread,
Dec 21, 2018, 6:10:30 AM12/21/18
to cytoscape-helpdesk
Hi,

Our net has a few type of nodes (e.g.  customer, company, employee of company product). Each of them has own styling (image, shape, ...).

Questions:

1) Is it possible to define  a set of properties ?
2) Is  it possible to use it
2a) during import
2b) during creating of nodes interactively  ?

The same questions for edge.

Thanks,

Michel

Scooter Morris

unread,
Jan 3, 2019, 11:22:24 AM1/3/19
to cytoscape-helpdesk
Hi Michel,
   You can certainly define your own style and then reapply that style.  Just go to the Style panel pull down the menu to create a new style or start by copying an existing style.  You can then export the style and re-import it whenever you want to use it.  This will work regardless of when the nodes/edges are created as long as they have the appropriate attributes.  So, for example, you would need to create an attribute for "type" as you've defined above and then the image/shape, etc would depend on that attribute.

-- scooter
Reply all
Reply to author
Forward
0 new messages