setNodeLineStyle (networkvisualizer)

index

setNodeLineStyle (networkvisualizer)

Set the line style of nodes for a given networkvisualizer object.

Syntax

net = setNodeLineStyle(net, style)
net = setNodeLineStyle(net, values)
net = setNodeLineStyle(net, values, categories)
net = setNodeLineStyle(net, values, categories, classname)

Arguments

Description

Examples

Setting the node line styles

rng(1, 'twister'); % For reproducibility
W = [0 1 1 0 0;1 0 0 1 1;1 0 0 0 0;0 0 0 0 1;1 0 1 0 0];
net = networkvisualizer(W);
net.setNodeLineWidth(3);
net.setNodeLineStyle('--');
plot(net);

which produces:

Updating node line styles using classes

categories = {'M', 'L', 'K', 'M', 'M'}';
net.addNodeClass(categories);
net.setNodeLineStyle(':', 'M');
plot(net);

which produces:

See Also

networkvisualizer, addNodeClass, setNodeLabels, setNodeLineColor, setNodeLineWidth