Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

How to add colour to nodes based on column in edge list?

+1 vote
I have an edge list table with Source ID, Sourcetype, Target ID and Targettype, where

the source/target types are A, B, C and D

How do i set yEd up so that i gives each node a colour based upone the types?
asked Nov 11, 2015 in Help by anonymous

1 Answer

+1 vote

You need to combine the edge list with a node list. This node list needs to have an ID column whose values match the values use for Source ID and Target ID in the edge list. Additionally, the node list needs a Type column with the appropriate A,B,C,D types. After importing your spreadsheet, go to "Edit" -> "Properties Mapper" and create a node configuration that sets the node's fill colour depending on the node's type. Detailed information on yEd's properties mapper is available in the yEd manual.

answered Nov 12, 2015 by thomas.behr [yWorks] (124,270 points)
Could you elaborate using a concrete example, explaining exactly how each item is entered into the Excel Import window? Say, if you have a source node column Actor, and a target node column Movie, how do I make it such that once the graph is processed, all the Actor nodes appear red and all the Movie nodes appear green?

Please see How do I specify a node's shape when I import a Node List? for a concrete example.

Imprint | Privacy Policy