select_graph_hierarchies: Function to find the hierarchies of a list of companies

View source: R/company_hierarchy.R

select_graph_hierarchiesR Documentation

Function to find the hierarchies of a list of companies

Description

This function searches the graphs of a vector of companies for their complete hierarchies from a graph containing containing a multitude of company hierarchies.

Usage

select_graph_hierarchies(graph_all_companies, id_companies,
  unique = TRUE)

Arguments

graph_all_companies

A graph containing all company/company relations data.

id_companies

A vector of company id's of which you want to retrieve the whole hierarchy

unique

Boolean specifying whether only the unique company hierarchies should be returned when asked for multiple companies from the same network

Details

The graphs will be unique, and contain a vertex attribute is_searched_company which specifies whether it the vertex represents a company which was selected

Value

A list of graphs containing the grawith the company hierarchy of the specifief company

Examples

select_graph_hierarchies <- find_company_hierarchy(graph_all_companies, "931238099")

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.