vertex_weights: Get Vertex Weights

View source: R/getters_setters.R

vertex_weightsR Documentation

Get Vertex Weights

Description

Takes a hypergraph object and returns the weights associated with its vertices.

Usage

vertex_weights(hype)

Arguments

hype

A hypergraph object.

Value

A vector of weights associated with each vertex. If the hypergraph has no weights associated with its vertices it will return NULL instead.

Examples

h <- example_hype()
vertex_weights(h)

rhype documentation built on Aug. 6, 2022, 5:05 p.m.