check_graphlist_equivrel_correspondence.tempnetwork: This function checks, if the indecies and entries of the...

Description Usage Arguments Value

View source: R/tempnetwork-inputchecker.R

Description

If the equivalence-relation of the given 'tempnetwork'-object is NULL, whether the vertex sets of all graphs in the graph-list of the given 'tempnetwork'-object are identical and if "hasTempflowCorrespondence" is FALSE whether the names of the graphs in the graph-list of the given 'tempnetwork'-object are unique. Otherwise, if "hasTempflowCorrespondence" is TRUE it will check if the number of vertices of each graph in the graph-list of the given 'tempnetwork'-object is identical to the number of equivalence-classes in the equivalence-relation of the given 'tempnetwork'-object. Additionally, it will check if for each entry in the equivalence-class of the equivalence-relation of the given 'tempnetwork'-object, there exists a vertex with the same name in the corresponding graph from the graph-list of the given 'tempnetwork'-object. If "hasTempflowCorrespondence" is FALSE, it will be additionally ensured that the names of the graphs in the graph-list of the given 'tempnetwork'-object are unique and that the indices of each equivalence-class from the equivalence-relation of the given 'tempnetwork'-object, are identical to the indices from the graph-list of the given 'tempnetwork'-object.

Usage

1
2
3
## S3 method for class 'tempnetwork'
check_graphlist_equivrel_correspondence(tempNetwork,
  hasTempflowCorrespondence = FALSE, throwError = TRUE)

Arguments

tempNetwork

A 'tempnetwork'-object.

hasTempflowCorrespondence

If TRUE, it will be assumed that the function "check_tempflow_graphlist_equivrel_correspondence" would evaluate to TRUE.

throwError

If TRUE the respective errors will be thrown. Otherwise, a truth value will be returned.

Value

The boolean value TRUE, if the indecies and entries of the equivalence-relation from the given 'tempnetwork'-object, correspond with the indecies and graphs of the graph-list from the given 'tempnetwork'-object.


KonstantinRK/tempnetwork documentation built on Dec. 23, 2019, 6:40 p.m.