MATLAB: Generating adjacency matrix for an un-directed graph adjacency matrixundirected graph I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help Best Answer Are you using a graph object? If so, call adjacency on it. If instead you just have a list of edges, take a look at the functions sparse or accumarray. Related SolutionsMATLAB: Draw Directed or undirected graph This functionality is available in MATLAB R2015b. See the following documentation for more info:http://www.mathworks.com/help/matlab/graph-and-network-algorithms.html MATLAB: Directed matrix to Undirected matrix How about the following?Y = G + G' > 0; Related QuestionI can’t create a graph from the adjacency matrixCreate undirected or direct 3d graph
Best Answer