Finding the number of edges per each node in a graph

1 view (last 30 days)
L'O.G.
L'O.G. on 3 Apr 2022
Answered: Akira Agata on 3 Apr 2022
How do you find the number of edges per each node in an undirected graph? The following isn't quite what I want as it double counts and lists the nodes.
[sOut,tOut] = findedge(graph)

Accepted Answer

Akira Agata
Akira Agata on 3 Apr 2022
Please reffer to the degree function.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by