vertex_weights {rhype}R 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)

[Package rhype version 0.3.0 Index]