frag.path.lengths {archeofrag} | R Documentation |

## Path length distribution for unconnected graphs

### Description

Path length distribution for unconnected graphs

### Usage

`frag.path.lengths(graph, cumulative=FALSE)`

### Arguments

`graph` |
An |

`cumulative` |
Logical. If TRUE, the cumulative relative frequency of the path lengths is returned. |

### Details

This function is a wrapper of `igraph`

`distance_table`

returning the frequency of path lengths in undirected and unconnected graphs. In the context of archaeological fragmentation analysis, path lengths are interpreted to characterise the properties of fragmentation within a layer.

### Value

A numeric vector having the same length as the maximum path length. The first element of the vector is the frequency of the paths of length 1, the second element is the frequency of the paths of length 2, etc.

### Author(s)

Sebastien Plutniak <sebastien.plutniak at posteo.net>

### See Also

### Examples

```
g <- frag.simul.process(n.components=20, vertices=50, disturbance = .15)
frag.path.lengths(g)
frag.path.lengths(g, cumulative=TRUE)
```

[Package

*archeofrag*version 0.8.2 Index]