randomGraph: Random Graph Generation

Description Usage Arguments See Also

View source: R/randomGraph.R

Description

This method generates a random graph with the given number of nodes and average connectivity. The result is a graph that is neither too uniform nor too degenerated and suitable for exercises.

Usage

1
randomGraph(no.of.nodes = 12, k = 2.5, euclidean = FALSE)

Arguments

no.of.nodes

Integer scalar, the number of vertices in the generated graph.

k

The average degree of each vertex in the graph

euclidean

Set to TRUE if (rounded) euclidean distances should be used.

See Also

removeIntersectingEdges to remove intersecting edges.


huoston/shortestpath documentation built on May 25, 2019, 8:18 a.m.