How can I make different colored links between nodes

What I’m trying to do

Make different colored links between nodes in graphview depending on their relationship

Things I have tried

CSS snippets, but I have only figured out how to change all of the links without differentiation (Not what I want to do)