Re: Directed Graph from Adjacency Matrix

*To*: mathgroup at smc.vnet.net*Subject*: [mg58803] Re: Directed Graph from Adjacency Matrix*From*: "Carl K. Woll" <carlw at u.washington.edu>*Date*: Tue, 19 Jul 2005 04:10:11 -0400 (EDT)*Organization*: University of Washington*References*: <dbflj5$n0m$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

"confused" <gtg368j at mail.gatech.edu> wrote in message news:dbflj5$n0m$1 at smc.vnet.net... >I am new to Mathematica. Here is my question. How would I get a > directed graph from an adjacency matrix? For instance, the 3x3 matrix > {{0,1,0},{0,0,1},{1,0,0}} defines a directed 3-cycle, but when I try to > turn it into a graph using FromAdjacencyMatrix, Mathematica returns a > graph with only two edges. > > Thank you. > Use the option Type->Directed: ShowGraph[FromAdjacencyMatrix[{{0,1,0},{0,0,1},{1,0,0}},Type->Directed]] produces a directed 3-cycle. Carl Woll Wolfram Research

**Follow-Ups**:**Re: Re: Directed Graph from Adjacency Matrix***From:*Ian Roberts <mathgroup@quantica.com.au>