n_vertices: Count the number of edges in the graph

Description Usage Arguments Value

View source: R/n_vertices.R

Description

A common interface for matrix and igraph representations of graph structure.

Usage

1
2
3
4
5
6
7
n_vertices(x)

## S3 method for class 'matrix'
n_vertices(x)

## S3 method for class 'igraph'
n_vertices(g)

Arguments

x

An adjacency matrix

g

An igraph object.

Value

Number of edges


crcox/latticize documentation built on Dec. 19, 2021, 6:19 p.m.