Finding the number of edges per each node in a graph

6 views (last 30 days)
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)


Find more on Graph and Network Algorithms in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by