graphab_graph {graph4lg} | R Documentation |
Create a graph in the Graphab project
Description
The function creates a graph from a link set in a Graphab project
Usage
graphab_graph(
proj_name,
linkset = NULL,
name = NULL,
thr = NULL,
cost_conv = FALSE,
proj_path = NULL,
alloc_ram = NULL
)
Arguments
proj_name |
A character string indicating the Graphab project name.
The project name is also the name of the project directory in which the
file proj_name.xml is. It can be created with |
linkset |
(optional, default=NULL) A character string indicating the
name of the link set used to create the graph. If |
name |
(optional, default=NULL) A character string indicating the
name of the graph created. If |
thr |
(optional, default=NULL) An integer or numeric value indicating the maximum distance associated with the links of the created graph. It allows users to create a pruned graph based on a distance threshold. Note that when the link set used has a planar topology, the graph is necessarily a pruned graph (not complete) and adding this threshold parameter can remove other links. When the link set has been created with cost-distances, the parameter is expressed in cost-distance units whereas when the link set is based upon Euclidean distances, the parameter is expressed in meters. |
cost_conv |
FALSE (default) or TRUE. Logical indicating whether numeric
|
proj_path |
(optional) A character string indicating the path to the
directory that contains the project directory. It should be used when the
project directory is not in the current working directory. Default is NULL.
When 'proj_path = NULL', the project directory is equal to |
alloc_ram |
(optional, default = NULL) Integer or numeric value indicating RAM gigabytes allocated to the java process. Increasing this value can speed up the computations. Too large values may not be compatible with your machine settings. |
Details
By default, intra-patch distances are considered for metric calculation. See more information in Graphab 2.8 manual: https://sourcesup.renater.fr/www/graphab/download/manual-2.8-en.pdf
Author(s)
P. Savary
Examples
## Not run:
graphab_graph(proj_name = "grphb_ex",
linkset = "lcp",
name = "graph")
## End(Not run)