Trying to construct a filtered graph using pmfg function that uses the (MATLAB-BGL) library in MacBook.

7 visualizaciones (últimos 30 días)
I'm encountering an error in MATLAB when trying to run the pmfg function. The error message indicates that two libraries, libmwfoundation_extdata_array.dylib and libhdf5.8.dylib, are missing from the maci64 directory. Here's the full error message:
PM =pmfg(v);
Invalid MEX-file '/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/planar_test_mex.mexmaci64':
dlopen(/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/planar_test_mex.mexmaci64, 0x0006):
Library not loaded: @rpath/libmwfoundation_extdata_array.dylib
Referenced from: <94F5C12E-B7F4-3239-A953-9C01C40CF7A5>
/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/libmex.dylib
Reason: tried:
'/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/libmwfoundation_extdata_array.dylib' (no such
file), '/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/./libmwfoundation_extdata_array.dylib'
(no such file),
'/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/../../sys/os/maci64/libmwfoundation_extdata_array.dylib'
(no such file), '/Applications/MATLAB_R2023a.app/bin/maci64/libmwfoundation_extdata_array.dylib' (no
such file), '/Applications/MATLAB_R2023a.app/bin/maci64/./libmwfoundation_extdata_array.dylib' (no such
file),
'/Applications/MATLAB_R2023a.app/bin/maci64/../../sys/os/maci64/libmwfoundation_extdata_array.dylib'
(no such file), '/Applications/MATLAB_R2023a.app/Contents/MacOS/libmwfoundation_extdata_array.dylib'
(no such file), '/Applications/MATLAB_R2023a.app/Contents/MacOS/./libmwfoundation_extdata_array.dylib'
(no such file),
'/Applications/MATLAB_R2023a.app/Contents/MacOS/../../standalone/bin/maci64/libmwfoundation_extdata_array.dylib'
(no such file),
'/Applications/MATLAB_R2023a.app/Contents/MacOS/../../sys/os/maci64/libmwfoundation_extdata_array.dylib'
(no such file), '/Applications/MATLAB_R2023a.app/bin/maci64/libmwfoundation_extdata_array.dylib' (no
such file), '/usr/local/lib/libmwfoundation_extdata_array.dylib' (no such file),
'/usr/lib/libmwfoundation_extdata_array.dylib' (no such file, not in dyld cache)Library not loaded:
@rpath/libhdf5.8.dylib
Referenced from: <F56F3B6F-23C4-36E2-9CF1-1066ABBBFCED>
/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/libmat.dylib
Reason: tried: '/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/libhdf5.8.dylib' (no such
file), '/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/./libhdf5.8.dylib' (no such file),
'/Users/pawaneshyadav/Desktop/PAWANESH/matlab_bgl/private/../../sys/os/maci64/libhdf5.8.dylib' (no such
file), '/Applications/MATLAB_R2023a.app/bin/maci64/libhdf5.8.dylib' (no such file),
'/Applications/MATLAB_R2023a.app/bin/maci64/./libhdf5.8.dylib' (no such file),
'/Applications/MATLAB_R2023a.app/bin/maci64/../../sys/os/maci64/libhdf5.8.dylib' (no such file),
'/Applications/MATLAB_R2023a.app/Contents/MacOS/libhdf5.8.dylib' (no such file),
'/Applications/MATLAB_R2023a.app/Contents/MacOS/./libhdf5.8.dylib' (no such file),
'/Applications/MATLAB_R2023a.app/Contents/MacOS/../../standalone/bin/maci64/libhdf5.8.dylib' (no such
file), '/Applications/MATLAB_R2023a.app/Contents/MacOS/../../sys/os/maci64/libhdf5.8.dylib' (no such
file), '/Applications/MATLAB_R2023a.app/bin/maci64/libhdf5.8.dylib' (no such file),
'/usr/local/lib/libhdf5.8.dylib' (no such file), '/usr/lib/libhdf5.8.dylib' (no such file, not in dyld
cache)
Error in boyer_myrvold_planarity_test (line 41)
is_planar = planar_test_mex(A,0);
Error in pmfg (line 80)
if boyer_myrvold_planarity_test(PMFG1(k,k)~=0) % is the resulting graph planar?
>>
Could someone please advise on how to resolve this issue? It seems that these libraries are essential for the pmfg function to work correctly. Any guidance on obtaining or locating these libraries would be greatly appreciated.
Thank you!

Respuesta aceptada

Christine Tobler
Christine Tobler el 13 de Feb. de 2024
Editada: Christine Tobler el 13 de Feb. de 2024
The problem seems to be with the MatlabBGL FileExchange package and specifically with the .mex files that are being provided there. Very likely, doing a new build of the original source code is necessary, since the last release of this package appears to be from 2010.
I would recommend posting on the Discussions tab of this package, as I suspect you will need help from the package authors.
There is now a graph and digraph class in MATLAB itself, but unfortunately it doesn't provide planarity testing.
  1 comentario
Pawanesh Yadav
Pawanesh Yadav el 13 de Feb. de 2024
Thank you so much for this input and I'll try reaching out to the package authors via the Discussions tab on the MatlabBGL FileExchange page for further assistance. Additionally, I'll also explore the possibility of rebuilding the source code as suggested.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Networks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by