도움말 센터도움말 센터
그래프의 간선 개수
N = numedges(G)
예제
N= numedges(G)는 그래프G의 간선 개수를 반환합니다.
N= numedges(G)
N
G
모두 축소
bucky인접 행렬을 사용하여 유방향 그래프를 생성한 후 그래프에 포함된 간선의 개수를 확인합니다.
bucky
G = digraph(bucky)
G = digraph with properties: Edges: [180x2 table] Nodes: [60x0 table]
N = 180
graph
digraph
입력 그래프로,graph객체 또는digraph객체로 지정됩니다. 무방향 그래프를 생성하려면graph를 사용하고 유방향 그래프를 생성하려면digraph를 사용하십시오.
예:G = graph(1,2)
G = graph(1,2)
예:G = digraph([1 2],[2 3])
G = digraph([1 2],[2 3])
간선 개수로, 스칼라로 반환됩니다.
graph|digraph|numnodes|addedge|rmedge
numnodes
addedge
rmedge
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office