Skip to content

GraphViz error while running grasp_erdos_renyi() function #2

@niruhan

Description

@niruhan

I am trying to run the following example code provided at https://github.com/bgirault-ensai/GSP-Intro-GraSP-Code. I have installed GraSP toolbox for matlab.

N = 30;

% Erdos-Renyi: Uniform Random Graph Model (@\index{Graphs!Erd\H{o}s-R'{e}nyi}@)
p = 0.1; % Edge probability
er = grasp_erdos_renyi(N, p, 'directed', false);

% Barabasi-Albert: Preferential Attachment Graph Model (@\index{Graphs!Barabasi-Albert}@)
m0 = 3; % Size of the initial complete graph
ba = grasp_barabasi_albert(N, m0);

% Random Bipartite
M = 20; % Size of the second set of nodes
rb = grasp_random_bipartite(N, M, 'p', p);

% Random Regular
k = 3; % Degree
rr = grasp_random_regular(N, k);

I am getting the following error in the Matlab console

zsh:1: command not found: neato
Warning: File 'output.dot' not found.
In grasp_layout (line 130)
In grasp_erdos_renyi (line 88)
In B_1_2_Random_Graph (line 5)
Error using grasp_layout
Sorry, unknown GraphViz failure, please try another layout

Error in grasp_erdos_renyi (line 88)
graph.layout = grasp_layout(graph);

Error in B_1_2_Random_Graph (line 5)
er = grasp_erdos_renyi(N, p, 'directed', false);

I have tried installing GraphViz using Homebrew and MacPorts. Both of them give the same error. My specs are as follows

Matlab - R2022a Update 3
MacOS - MacOS Monterey 12.4
Processor - M1 Pro

Kindly let me know if there is any resolution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions