setNodeCurvature (networkvisualizer)

index

setNodeCurvature (networkvisualizer)

Set the node curvatures for a networkvisualizer object.

Syntax

net = setNodeCurvature(net, alpha)
net = setNodeCurvature(net, values)
net = setNodeCurvature(net, values, categories)
net = setNodeCurvature(net, values, categories, classname)

Arguments

Description

Examples

Setting the node curvatures

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

which produces:

Updating node curvatures based on classes

categories = {'M', 'L', 'K', 'M', 'M'}';
net = addNodeClass(net, categories);
net = setNodeCurvature(net, 1, 'M');
plot(net);

which produces:

See Also

networkvisualizer, addNodeClass, setNodeColors, setNodeSizes