It is possible to style links. The order number of when the link was defined in the graph is used. In the example below the style defined in the linkStyle statement will belong to the second link in the graph:
More convenient than defining the style every time is to define a class of styles and attach this class to the nodes that should have a different look.