spatialgraph2D

Creates a graph object with 2D spatial locations associated with the nodes

Download
Download

You are now following this Submission

Cite As

Matt J (2026). spatialgraph2D (https://in.mathworks.com/matlabcentral/fileexchange/73630-spatialgraph2d), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2016b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
3.1.1

Small efficiency update

Download
3.1.0

MAJOR UPDATE:
*Complete revision of the algorithm that decomposes the graph into polygons, needed to address reported failure cases.
*Added the pgonNodes() method.

Download
2.1.0

Added support for directed graphs

Download
2.0.7

Description update

Download
2.0.6

Description update

Download
2.0.5

The polyshape() method now returns an empty polyshape and labelIndices cell as outputs when no mosaic polygons exist in the graph.

Download
2.0.4

Bug fix dealing with graphs with no polygons present.

Download
2.0.3

Description update

Download
2.0.2

Added support for abbreviated syntaxes spatialgraph2D(G) and spatialgraph2D(G,[[,[],labels)

Download
2.0.1

Minor change which should improve efficiency slightly.

Download
2.0.0

Removed restriction on multiple mosaics in polyshape() method. All polygons in the graph should now be found, regardless of how they are interconnected.

Download
1.0.4

Edit

Download
1.0.3

Description edit

Download
1.0.2

Description edit

Download
1.0.1

Description edit

Download
1.0.0

Download