| Bioinformatics Toolbox™ | ![]() |
Perform topological sort of directed acyclic graph extracted from biograph object
order =
topoorder(BGObj)
| BGObj | Biograph object created by biograph (object constructor). |
Tip For introductory information on graph theory functions, see Graph Theory Functions in the Bioinformatics Toolbox™ User's Guide. |
order = topoorder(BGObj) returns an index vector with the order of the nodes sorted topologically. In topological order, an edge can exist between a source node u and a destination node v, if and only if u appears before v in the vector order. BGObj is a biograph object from which an N-by-N adjacency matrix is extracted and represents a directed acyclic graph (DAG). In the N-by-N sparse matrix, all nonzero entries indicate the presence of an edge.
[1] Siek, J.G., Lee, L-Q, and Lumsdaine, A. (2002). The Boost Graph Library User Guide and Reference Manual, (Upper Saddle River, NJ:Pearson Education).
Bioinformatics Toolbox™ functions: biograph (object constructor), graphtopoorder
Bioinformatics Toolbox object: biograph object
Bioinformatics Toolbox methods of a biograph object: allshortestpaths, conncomp, isdag, isomorphism, isspantree, maxflow, minspantree, shortestpath, traverse
![]() | subtree (phytree) | traverse (biograph) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |