Linking nodes using links in a graph based on information from another layer

조회 수: 1 (최근 30일)
Hari
Hari 2022년 5월 10일
답변: Christine Tobler 2022년 5월 10일
Is it possible to work with layers in matlab? The first layer should contain the graph network with nodes and edges (which represents the road network).The second layer should contain information on the geographical terrain of the area which decides if a link can pass through the area. I need to add new edges to the graph based on the information from the second second layer. If this is possible how can I bring in the second layer?

답변 (1개)

Christine Tobler
Christine Tobler 2022년 5월 10일
You could represent the first layer as a graph object, adding coordinate information for each node to the Nodes table. For the second layer, the mapping toolbox provides different representations.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by