Hi all, I have graph consists of 37 edges and 33 nodes, I want to remove some edges . removing 1 edge works with me
R33=graph(A33);
G = rmedge(R33,18,33) ; % remove branch from node 18 to 33
plot(G)
However, when i tried to remove several edges it did not work. can any one help
R33=graph(A33);
G = rmedge(R33, [18 33], [25 29], [12 22]) ; % could not remove these branches 18-33 , 25-29 , 12-22
plot(G)
can anyone help
thank you

 채택된 답변

Steven Lord
Steven Lord 2019년 7월 1일

0 개 추천

Looking at its documentation page the rmedge function for graph objects does not have a syntax that accepts four input arguments. However, the s and t inputs to rmedge can be vectors of node indices or a cell or string array of node names to delete multiple edges at once. See the "Remove Edges with Specified End Nodes" example on that page.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 7월 1일

댓글:

2019년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by