Determining if a graph is connected in Matlab
I needed a quick script to tell me if a graph was connected or not. My adviser usually tells me “MATLAB has everything!” No, it doesn’t, and that’s why we need to write simple code like this just to get more complicated jobs done.
Since I haven’t posted in a while, let’s do another script. This one will determine if a graph is symmetrical, which is another simple problem that MATLAB doesn’t have the code to do. As you can see, the code is very short.
-
jcchurch posted this