Convert an adjacency list to an edge array. EDGES = adjacencyListToEdges(ADJ) Converts the adjacency list ADJ, given as a cell array of adjacent indices, to an edge array. Example % create adjacency list for a simple graph adj = {[2 3], [1 4 5], [1 4], [2 3 5], [2 4]}; edges = adjacencyListToEdges(adj) edges = 1 2 1 3 2 4 2 5 3 4 4 5 See also graphs, polygonSkeletonGraph
Package: matgeom