Network Graph Layout Method - Maple Help

Online Help

All Products    Maple    MapleSim


Network Graph Layout Method

 

Options

Description

Examples

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

withGraphTheory:

GDigraph1,3,2,3,3,4,3,5

GGraph 1: a directed unweighted graph with 5 vertices and 4 arc(s)

(1)

DrawGraphG,layout=network

HRandomGraphs:-RandomNetwork11,0.4,acyclic

HGraph 2: a directed unweighted graph with 11 vertices and 20 arc(s)

(2)

DrawGraphH,layout=network,layoutopts=orientation=horizontal

See Also

GraphTheory[DrawGraph]

GraphTheory[DrawNetwork]

GraphTheory[IsNetwork]