Finding the number of edges per each node in a graph

2 Ansichten (letzte 30 Tage)
L'O.G.
L'O.G. am 3 Apr. 2022
Beantwortet: Akira Agata am 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)

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by