farthest.nodes: Diameter of a graph

View source: R/structural.properties.R

farthest.nodesR Documentation

Diameter of a graph

Description

[Deprecated]

farthest.nodes() was renamed to farthest_vertices() to create a more consistent API.

Usage

farthest.nodes(graph, directed = TRUE, unconnected = TRUE, weights = NULL)

Arguments

graph

The graph to analyze.

directed

Logical, whether directed or undirected paths are to be considered. This is ignored for undirected graphs.

unconnected

Logical, what to do if the graph is unconnected. If FALSE, the function will return a number that is one larger the largest possible diameter, which is always the number of vertices. If TRUE, the diameters of the connected components will be calculated and the largest one will be returned.

weights

Optional positive weight vector for calculating weighted distances. If the graph has a weight edge attribute, then this is used by default.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.