필터 지우기
필터 지우기

Graph Theory - Merge two graph variables (with corresponding nodes / edges) of different dimension from Excel ?

조회 수: 1 (최근 30일)
I have 2 Excel tables (describing two graph edges), created using the function writetable(G.Edges, myXLSXfile).
The differences between excel files (namely between the two graph variables) are the following:
  • one of them could have new columns than the other
  • one of them could contain new edges
It means both can also have common rows (=edges) and columns (=edges properties).
Now I want to merge these two tables / graphs in such a way to follow this rules for the resulting graph variable:
  • it must contain all columns
  • it must contain all edges / nodes
  • for common nodes / edges having different properties, just one of them (e.g. always the second input graph/table) has the priority on the other (namely must be choosen).
  • for all nodes / edges which didn't have new properties before merging, must be set a default value (e.g. 0)
How to get this result? Thanks in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by