Finding the number of edges per each node in a graph

7 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)

Categories

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

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!