About 197,000 results
Open links in new tab
  1. digraph - Graph with directed edges - MATLAB - MathWorks

    G = digraph(A) creates a directed graph using a square adjacency matrix, A. For logical adjacency matrices, the graph has no edge weights. For nonlogical adjacency matrices, the …

  2. adjacency - Graph adjacency matrix - MATLAB - MathWorks

    Create a directed graph using an edge list, and then find the equivalent adjacency matrix representation of the graph. The adjacency matrix is returned as a sparse matrix. s = [1 1 1 2 …

  3. Directed and Undirected Graphs - MATLAB & Simulink

    You can use the graph or digraph functions to create a graph using an adjacency matrix, or you can use the adjacency function to find the weighted or unweighted sparse adjacency matrix of …

  4. How to graph adjacency matrix using MATLAB - Stack Overflow

    Dec 7, 2014 · If your graph is connected, a way to construct the array xy to pass to gplot is as v(:,[2 3]) where v is the matrix of eigenvectors of the Laplacian matrix, ordered from smallest …

  5. Create graph of adjacency matrix in MATLAB - Stack Overflow

    You can use the builtin digraph (introduced in R2015b) function to represent an adjacency matrix: A = round(rand(8)); % create adjacency matrix plot(digraph(A)); % plot directed graph In case …

  6. matlab - Detecting cycles in an adjacency matrix - Stack Overflow

    May 8, 2013 · If A is the adjacency matrix of the directed or undirected graph G, then the matrix A^n (i.e., the matrix product of n copies of A) has following property: the entry in row i and …

  7. How to represent a directed graph as an adjacency matrix

    Feb 16, 2022 · In this tutorial, we’ll be looking at representing directed graphs as adjacency matrices. Unlike an undirected graph, directed graphs have directionality. This is generally …

  8. gplot - Plot nodes and edges in adjacency matrix - MATLAB

    gplot(A,XYCoords) plots a graph of the nodes and edges defined in the adjacency matrix A at the coordinates specified in XYCoords. The adjacency matrix A is an n-by-n matrix, where n is the …

  9. adjacency - MathWorks

    Use adjacency to return the adjacency matrix of the graph. Regardless of the form of adjacency matrix used to construct the graph, the adjacency function always returns a symmetric and …

  10. Adjacency Matrix Representation - GeeksforGeeks

    Mar 19, 2025 · Adjacency Matrix is a square matrix used to represent a finite graph by storing the relationships between the nodes in their respective cells. For a graph with V vertices, the …

  11. Some results have been removed
Refresh