Extending newtwork
functions to newtwork_financial
objects
newtwork
functions to newtwork_financial
objectsThe following functions are implemented:
edgecount
to count the number of eges (network::network.edgecount
);vertex.names
to retrieve the vertices' names (network::network.vertex.names
);network.size
to count the edges (network::network::network.size
);plot_network
to plot networks (network::plot.network
))edgecount(x, ...) network.size(x, ...) vertex.names(x, ...) plot_network(x, ...)
x
: The newtwork_financial
object...
: Other parameters passed to the corresponding newtwork
functions (see Details).The same result for both newtwork
and newtwork_financial
objects
edgecount
: Number of edges, numeric scalarvertex.names
: Names/Labels of the vertices, character vectornetwork.size
: Number of vertices, numeric scalarplot_network
: Returns a two-column matrix containing the vertex positions as (x,y)
coordinates, invisibly. Called to print the graph to any R
device.)Implementing most basic iterators from the package newtwork
for objects of class newtwork_financial