File Exchange

image thumbnail

Random Geometric Graph Visualization App

version 1.0.0 (29.3 KB) by Violeta Call So
An app that creates and plots a custom Random Geometric Graph. It allows you to save it and choose its number of nodes and radius.


Updated 07 Aug 2018

View License

A Random Geometric Graph is an undirected spatial graph (or network) whose nodes are randomly placed in a 2D square [0,1]. If the Euclidean distance between two nodes is equal to or less than a certain radius, they connect by an edge.

The instructional application, created with GUIDE, can be used to learn how a Random Geometric Graph is constructed and give some insight about its appearance.

- The Number of Nodes can be changed (10, 30, 50, 100, 200)
- The radius can be varied (0.1, 0.2, 0.3, 0.5)
- A circumference centred in each node can be plotted.
- The Adjancey matrix, coordinates of nodes and radius of the created Random Geometric Graph can be solved
- A color bar indicates nodes connectivity.

Additionally, plotRGG.m function can be used separately for plotting your own Random Geometric Graphs.

This is my first venture into GUIs so if there are any bugs, please let me know.

Author: Violeta Calleja Solanas

Cite As

Violeta Call So (2019). Random Geometric Graph Visualization App (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

@Johann Thanks! The Save Graph Button creates a file called 'RGG.mat' in YOUR FOLDER ( not in your workspace) containing the adjacency matrix AA, coordinates and radius of the graph.


Nice, thanks, but... how can I save the adjacency matrix? The Save Graph button does do nothing and nothing is rewritten in RGG.mat

Thanks in advance

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux