cstretch: cstretch

Description Usage Arguments Details Value Author(s) Examples

Description

Compute the composite stretch

Usage

1
  cstretch(G, list.path)

Arguments

G

A compgraph object

list.path

A path in g1 represented as a list of vertex Ids

Details

Compute the composite stretch of a path in g1

Value

An integer representing the length of the composite stretch of the path in G. That is, the length of the corresponding path in g2 for the vertices in the path in g1 mapped according to R.

Author(s)

Ben Baumer

Examples

1
2
3
4
5
n = 20
p = 1/2
g1 = erdos.renyi.game(n, p)
g2 = erdos.renyi.game(n, p)
cg = compgraph(g1, g2, name="myCompGraph")

beanumber/compgraph documentation built on May 12, 2019, 9:42 a.m.