Defines the Abstract Class for all PackageGraphReporters defined in pkgnet. The class is not meant to be instantiated, but inherited from and its methods overloaded such that each Metric implements certain functionality.
AbstractGraphReporter
An object of class R6ClassGenerator of length 24.
edgesA data.table from SOURCE to TARGET nodes describing the connections
nodesA data.table with node as an identifier, and augmenting information about each node
pkg_graphAn igraph object describing the package graph
network_measuresA list of network measures calculated by calculate_network_features
layout_typeCharacter string indicating currently active graph layout
graph_vizvisNetwork object of package graph
pkg_graphReturns the graph object
network_measuresReturns a table of network measures, one row per node
graph_vizReturns the graph visualization object
layout_typeIf no value given, the current layout type for the graph visualization is returned.
If a valid layout type is given, this function will update the layout_type field.
You can use grep("^layout_\\S", getNamespaceExports("igraph"), value = TRUE) to see valid options.
Other AbstractReporters: AbstractPackageReporter