フィルターのクリア

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

6 ビュー (過去 30 日間)
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!

採用された回答

Christine Tobler
Christine Tobler 2024 年 2 月 13 日
編集済み: Christine Tobler 2024 年 2 月 13 日
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 件のコメント
Pawanesh Yadav
Pawanesh Yadav 2024 年 2 月 13 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetworks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by