 Network Graph Layout Method - Maple Help

Network Graph Layout Method Options

 • sink=vertex
 specify a main sink for the network. If a sink is specified, then a source must also be given.
 • source=vertex
 specify a main source for the network. If a source is specified then a sink must also be given.
 • orientation="horizontal" or "vertical"
 layout the network left to right, or top to bottom respectively. The default is "vertical". Description

 • The network layout method renders the Graph as a network starting from a source and ending at a sink that are either given, or automatically determined by IsNetwork.
 • This layout method works only in two dimensions. Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $G≔\mathrm{Digraph}\left(\left\{\left[1,3\right],\left[2,3\right],\left[3,4\right],\left[3,5\right]\right\}\right)$
 ${G}{≔}{\mathrm{Graph 1: a directed unweighted graph with 5 vertices and 4 arc\left(s\right)}}$ (1)
 > $\mathrm{DrawGraph}\left(G,\mathrm{layout}=\mathrm{network}\right)$ > $H≔\mathrm{RandomGraphs}:-\mathrm{RandomNetwork}\left(11,0.4,\mathrm{acyclic}\right)$
 ${H}{≔}{\mathrm{Graph 2: a directed unweighted graph with 11 vertices and 20 arc\left(s\right)}}$ (2)
 > $\mathrm{DrawGraph}\left(H,\mathrm{layout}=\mathrm{network},\mathrm{layoutopts}=\left[\mathrm{orientation}=\mathrm{horizontal}\right]\right)$ 