Random Graph Layout Method - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Random Graph Layout Method

 

Options

Description

Examples

Options

• 

distribution=function

  

This option can take any value understood by the RandomTools distribution generator. See RandomTools/flavor/distribution. This method will generate  points and check if there were  unique points generated.  If not, it will try again. If both distribution and generator options are given, only generator will be used.

• 

generator=function

  

This option can take a custom procedure that generates points (as lists) of the appropriate dimension. This method will generate  points and check if there were  unique points generated.  If not, it will try again. If both distribution and generator options are given, only generator will be used.

• 

seed=posint

  

Specify a seed to send to randomize before generating the random points.

Description

• 

The random layout method uses RandomTools:-Generate to generate random positions for the vertices of the graph. By default, this method randomly populates a  grid with the graph vertices (with an additional small random perturbation added to reduce the likelihood of overlapping edges).

• 

This layout method works in two and three dimensions.

Examples

(1)

A custom procedure to create random points can also be used

(2)

See Also

GraphTheory[DrawGraph]

 


Download Help Document