How to find degree distribution of a directed signed graph?

조회 수: 14 (최근 30일)
Mouli Sarkar
Mouli Sarkar 2021년 8월 24일
답변: Devyani Maladkar 2021년 8월 25일
I have a dataset which consists of edge lists. From that dataset I can create a directed signed graph. Now I want to study degree distribution. How can I study degree distribution of this particular graph?

답변 (1개)

Devyani Maladkar
Devyani Maladkar 2021년 8월 25일
Hello,
I understand that you want to obtain information regarding the degree distribution from the graph.
You can obtain the degree of the nodes and then use a histogram to study the distribution of degrees of nodes in the graph.
s = [1 1 1 4 4 6 6 6];
t = [2 3 4 5 6 7 8 9];
G=graph(s,t)
hist(degree(G))) % degree on x-axis
You can refer to the documentation for degree function and documentation for creating graphs for more information.

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by