setNodeLineWidth (networkvisualizer)

index

setNodeLineWidth (networkvisualizer)

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

Syntax

net = setNodeLineWidth(net, k)
net = setNodeLineWidth(net, values)
net = setNodeLineWidth(net, values, categories)
net = setNodeLineWidth(net, values, categories, classname)

Arguments

Description

Examples

Setting the node line widths

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(net, 7);
plot(net);

which produces:

Updating node line widths using classes

categories = {'M', 'L', 'K', 'M', 'M'}';
net = addNodeClass(net, categories);
net = setNodeLabels(net, {'Category M'}, 'M');
net = setNodeLineWidth(net, 9, 'M');
plot(net);

which produces:

See Also

networkvisualizer, addNodeClass, setNodeLabels, setNodeLineColor, setNodeLineStyle