decorate_graph: Utility function that applies edge bundle and distance...

Description Usage Arguments Value

View source: R/decorators.R

Description

You will usually not need to call this function directly. greedy_search will use it to apply the supplied edge bundle and distance attributes to the graph. This function is exposed as a convenience in case you wish to access those attributes on the graph.

Usage

1
decorate_graph(graph, edge_bundles, distances)

Arguments

graph

An igraph object.

edge_bundles

A list of integer vectors. Each list item will be considered one edge bundle, and each vector the edge indices belonging to that bundle.

distances

Double. A vector of length ecount(graph) with the distances of each edge.

Value

A pathfinder_graph object.


dSHARP-CMU/pathfinder documentation built on Sept. 11, 2019, 8:54 a.m.